@jellyfin/sdk 0.7.0 → 0.8.1
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 +23 -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/node_modules/tslib/tslib.es6.js +26 -0
- 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, 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.UserLibraryApi = exports.UserLibraryApiFactory = exports.UserLibraryApiFp = exports.UserLibraryApiAxiosParamCreator = 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
|
* UserLibraryApi - axios parameter creator
|
|
89
9
|
* @export
|
|
90
10
|
*/
|
|
91
|
-
|
|
92
|
-
var _this = this;
|
|
11
|
+
const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
93
12
|
return {
|
|
94
13
|
/**
|
|
95
14
|
*
|
|
@@ -99,43 +18,33 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
99
18
|
* @param {*} [options] Override http request option.
|
|
100
19
|
* @throws {RequiredError}
|
|
101
20
|
*/
|
|
102
|
-
deleteUserItemRating:
|
|
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
|
+
deleteUserItemRating: (userId, itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
// verify required parameter 'userId' is not null or undefined
|
|
23
|
+
assertParamExists('deleteUserItemRating', 'userId', userId);
|
|
24
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
25
|
+
assertParamExists('deleteUserItemRating', 'itemId', itemId);
|
|
26
|
+
const localVarPath = `/Users/{userId}/Items/{itemId}/Rating`
|
|
27
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
28
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
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 Gets intros to play before the main media item plays.
|
|
@@ -144,43 +53,33 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
144
53
|
* @param {*} [options] Override http request option.
|
|
145
54
|
* @throws {RequiredError}
|
|
146
55
|
*/
|
|
147
|
-
getIntros:
|
|
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
|
+
getIntros: (userId, itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
// verify required parameter 'userId' is not null or undefined
|
|
58
|
+
assertParamExists('getIntros', 'userId', userId);
|
|
59
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
60
|
+
assertParamExists('getIntros', 'itemId', itemId);
|
|
61
|
+
const localVarPath = `/Users/{userId}/Items/{itemId}/Intros`
|
|
62
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
63
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
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: 'GET' }, 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 an item from a user\'s library.
|
|
@@ -189,43 +88,33 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
189
88
|
* @param {*} [options] Override http request option.
|
|
190
89
|
* @throws {RequiredError}
|
|
191
90
|
*/
|
|
192
|
-
getItem:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
220
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
221
|
-
return [2 /*return*/, {
|
|
222
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
223
|
-
options: localVarRequestOptions,
|
|
224
|
-
}];
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
});
|
|
228
|
-
},
|
|
91
|
+
getItem: (userId, itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
// verify required parameter 'userId' is not null or undefined
|
|
93
|
+
assertParamExists('getItem', 'userId', userId);
|
|
94
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
95
|
+
assertParamExists('getItem', 'itemId', itemId);
|
|
96
|
+
const localVarPath = `/Users/{userId}/Items/{itemId}`
|
|
97
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
98
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
99
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
100
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
101
|
+
let baseOptions;
|
|
102
|
+
if (configuration) {
|
|
103
|
+
baseOptions = configuration.baseOptions;
|
|
104
|
+
}
|
|
105
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
106
|
+
const localVarHeaderParameter = {};
|
|
107
|
+
const localVarQueryParameter = {};
|
|
108
|
+
// authentication CustomAuthentication required
|
|
109
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
110
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
113
|
+
return {
|
|
114
|
+
url: toPathString(localVarUrlObj),
|
|
115
|
+
options: localVarRequestOptions,
|
|
116
|
+
};
|
|
117
|
+
}),
|
|
229
118
|
/**
|
|
230
119
|
*
|
|
231
120
|
* @summary Gets latest media.
|
|
@@ -243,70 +132,60 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
243
132
|
* @param {*} [options] Override http request option.
|
|
244
133
|
* @throws {RequiredError}
|
|
245
134
|
*/
|
|
246
|
-
getLatestMedia:
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
302
|
-
return [2 /*return*/, {
|
|
303
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
304
|
-
options: localVarRequestOptions,
|
|
305
|
-
}];
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
},
|
|
135
|
+
getLatestMedia: (userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
// verify required parameter 'userId' is not null or undefined
|
|
137
|
+
assertParamExists('getLatestMedia', 'userId', userId);
|
|
138
|
+
const localVarPath = `/Users/{userId}/Items/Latest`
|
|
139
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
140
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
142
|
+
let baseOptions;
|
|
143
|
+
if (configuration) {
|
|
144
|
+
baseOptions = configuration.baseOptions;
|
|
145
|
+
}
|
|
146
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
147
|
+
const localVarHeaderParameter = {};
|
|
148
|
+
const localVarQueryParameter = {};
|
|
149
|
+
// authentication CustomAuthentication required
|
|
150
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
151
|
+
if (parentId !== undefined) {
|
|
152
|
+
localVarQueryParameter['parentId'] = parentId;
|
|
153
|
+
}
|
|
154
|
+
if (fields) {
|
|
155
|
+
localVarQueryParameter['fields'] = fields;
|
|
156
|
+
}
|
|
157
|
+
if (includeItemTypes) {
|
|
158
|
+
localVarQueryParameter['includeItemTypes'] = includeItemTypes;
|
|
159
|
+
}
|
|
160
|
+
if (isPlayed !== undefined) {
|
|
161
|
+
localVarQueryParameter['isPlayed'] = isPlayed;
|
|
162
|
+
}
|
|
163
|
+
if (enableImages !== undefined) {
|
|
164
|
+
localVarQueryParameter['enableImages'] = enableImages;
|
|
165
|
+
}
|
|
166
|
+
if (imageTypeLimit !== undefined) {
|
|
167
|
+
localVarQueryParameter['imageTypeLimit'] = imageTypeLimit;
|
|
168
|
+
}
|
|
169
|
+
if (enableImageTypes) {
|
|
170
|
+
localVarQueryParameter['enableImageTypes'] = enableImageTypes;
|
|
171
|
+
}
|
|
172
|
+
if (enableUserData !== undefined) {
|
|
173
|
+
localVarQueryParameter['enableUserData'] = enableUserData;
|
|
174
|
+
}
|
|
175
|
+
if (limit !== undefined) {
|
|
176
|
+
localVarQueryParameter['limit'] = limit;
|
|
177
|
+
}
|
|
178
|
+
if (groupItems !== undefined) {
|
|
179
|
+
localVarQueryParameter['groupItems'] = groupItems;
|
|
180
|
+
}
|
|
181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
return {
|
|
185
|
+
url: toPathString(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
};
|
|
188
|
+
}),
|
|
310
189
|
/**
|
|
311
190
|
*
|
|
312
191
|
* @summary Gets local trailers for an item.
|
|
@@ -315,43 +194,33 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
315
194
|
* @param {*} [options] Override http request option.
|
|
316
195
|
* @throws {RequiredError}
|
|
317
196
|
*/
|
|
318
|
-
getLocalTrailers:
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
346
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
347
|
-
return [2 /*return*/, {
|
|
348
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
349
|
-
options: localVarRequestOptions,
|
|
350
|
-
}];
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
});
|
|
354
|
-
},
|
|
197
|
+
getLocalTrailers: (userId, itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
198
|
+
// verify required parameter 'userId' is not null or undefined
|
|
199
|
+
assertParamExists('getLocalTrailers', 'userId', userId);
|
|
200
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
201
|
+
assertParamExists('getLocalTrailers', 'itemId', itemId);
|
|
202
|
+
const localVarPath = `/Users/{userId}/Items/{itemId}/LocalTrailers`
|
|
203
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
204
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
205
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
207
|
+
let baseOptions;
|
|
208
|
+
if (configuration) {
|
|
209
|
+
baseOptions = configuration.baseOptions;
|
|
210
|
+
}
|
|
211
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
212
|
+
const localVarHeaderParameter = {};
|
|
213
|
+
const localVarQueryParameter = {};
|
|
214
|
+
// authentication CustomAuthentication required
|
|
215
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
216
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
217
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
219
|
+
return {
|
|
220
|
+
url: toPathString(localVarUrlObj),
|
|
221
|
+
options: localVarRequestOptions,
|
|
222
|
+
};
|
|
223
|
+
}),
|
|
355
224
|
/**
|
|
356
225
|
*
|
|
357
226
|
* @summary Gets the root folder from a user\'s library.
|
|
@@ -359,40 +228,30 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
359
228
|
* @param {*} [options] Override http request option.
|
|
360
229
|
* @throws {RequiredError}
|
|
361
230
|
*/
|
|
362
|
-
getRootFolder:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
387
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
388
|
-
return [2 /*return*/, {
|
|
389
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
390
|
-
options: localVarRequestOptions,
|
|
391
|
-
}];
|
|
392
|
-
}
|
|
393
|
-
});
|
|
394
|
-
});
|
|
395
|
-
},
|
|
231
|
+
getRootFolder: (userId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
// verify required parameter 'userId' is not null or undefined
|
|
233
|
+
assertParamExists('getRootFolder', 'userId', userId);
|
|
234
|
+
const localVarPath = `/Users/{userId}/Items/Root`
|
|
235
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
238
|
+
let baseOptions;
|
|
239
|
+
if (configuration) {
|
|
240
|
+
baseOptions = configuration.baseOptions;
|
|
241
|
+
}
|
|
242
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
243
|
+
const localVarHeaderParameter = {};
|
|
244
|
+
const localVarQueryParameter = {};
|
|
245
|
+
// authentication CustomAuthentication required
|
|
246
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
247
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
249
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
250
|
+
return {
|
|
251
|
+
url: toPathString(localVarUrlObj),
|
|
252
|
+
options: localVarRequestOptions,
|
|
253
|
+
};
|
|
254
|
+
}),
|
|
396
255
|
/**
|
|
397
256
|
*
|
|
398
257
|
* @summary Gets special features for an item.
|
|
@@ -401,43 +260,33 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
401
260
|
* @param {*} [options] Override http request option.
|
|
402
261
|
* @throws {RequiredError}
|
|
403
262
|
*/
|
|
404
|
-
getSpecialFeatures:
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
432
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
433
|
-
return [2 /*return*/, {
|
|
434
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
435
|
-
options: localVarRequestOptions,
|
|
436
|
-
}];
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
});
|
|
440
|
-
},
|
|
263
|
+
getSpecialFeatures: (userId, itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
// verify required parameter 'userId' is not null or undefined
|
|
265
|
+
assertParamExists('getSpecialFeatures', 'userId', userId);
|
|
266
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
267
|
+
assertParamExists('getSpecialFeatures', 'itemId', itemId);
|
|
268
|
+
const localVarPath = `/Users/{userId}/Items/{itemId}/SpecialFeatures`
|
|
269
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
270
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
271
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
273
|
+
let baseOptions;
|
|
274
|
+
if (configuration) {
|
|
275
|
+
baseOptions = configuration.baseOptions;
|
|
276
|
+
}
|
|
277
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
278
|
+
const localVarHeaderParameter = {};
|
|
279
|
+
const localVarQueryParameter = {};
|
|
280
|
+
// authentication CustomAuthentication required
|
|
281
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
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
|
+
}),
|
|
441
290
|
/**
|
|
442
291
|
*
|
|
443
292
|
* @summary Marks an item as a favorite.
|
|
@@ -446,43 +295,33 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
446
295
|
* @param {*} [options] Override http request option.
|
|
447
296
|
* @throws {RequiredError}
|
|
448
297
|
*/
|
|
449
|
-
markFavoriteItem:
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
477
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
478
|
-
return [2 /*return*/, {
|
|
479
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
480
|
-
options: localVarRequestOptions,
|
|
481
|
-
}];
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
});
|
|
485
|
-
},
|
|
298
|
+
markFavoriteItem: (userId, itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
// verify required parameter 'userId' is not null or undefined
|
|
300
|
+
assertParamExists('markFavoriteItem', 'userId', userId);
|
|
301
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
302
|
+
assertParamExists('markFavoriteItem', 'itemId', itemId);
|
|
303
|
+
const localVarPath = `/Users/{userId}/FavoriteItems/{itemId}`
|
|
304
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
305
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
306
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
307
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
308
|
+
let baseOptions;
|
|
309
|
+
if (configuration) {
|
|
310
|
+
baseOptions = configuration.baseOptions;
|
|
311
|
+
}
|
|
312
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
313
|
+
const localVarHeaderParameter = {};
|
|
314
|
+
const localVarQueryParameter = {};
|
|
315
|
+
// authentication CustomAuthentication required
|
|
316
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
317
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
318
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
320
|
+
return {
|
|
321
|
+
url: toPathString(localVarUrlObj),
|
|
322
|
+
options: localVarRequestOptions,
|
|
323
|
+
};
|
|
324
|
+
}),
|
|
486
325
|
/**
|
|
487
326
|
*
|
|
488
327
|
* @summary Unmarks item as a favorite.
|
|
@@ -491,43 +330,33 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
491
330
|
* @param {*} [options] Override http request option.
|
|
492
331
|
* @throws {RequiredError}
|
|
493
332
|
*/
|
|
494
|
-
unmarkFavoriteItem:
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
522
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
523
|
-
return [2 /*return*/, {
|
|
524
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
525
|
-
options: localVarRequestOptions,
|
|
526
|
-
}];
|
|
527
|
-
}
|
|
528
|
-
});
|
|
529
|
-
});
|
|
530
|
-
},
|
|
333
|
+
unmarkFavoriteItem: (userId, itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
// verify required parameter 'userId' is not null or undefined
|
|
335
|
+
assertParamExists('unmarkFavoriteItem', 'userId', userId);
|
|
336
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
337
|
+
assertParamExists('unmarkFavoriteItem', 'itemId', itemId);
|
|
338
|
+
const localVarPath = `/Users/{userId}/FavoriteItems/{itemId}`
|
|
339
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
340
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
341
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
342
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
343
|
+
let baseOptions;
|
|
344
|
+
if (configuration) {
|
|
345
|
+
baseOptions = configuration.baseOptions;
|
|
346
|
+
}
|
|
347
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
348
|
+
const localVarHeaderParameter = {};
|
|
349
|
+
const localVarQueryParameter = {};
|
|
350
|
+
// authentication CustomAuthentication required
|
|
351
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
352
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
353
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
355
|
+
return {
|
|
356
|
+
url: toPathString(localVarUrlObj),
|
|
357
|
+
options: localVarRequestOptions,
|
|
358
|
+
};
|
|
359
|
+
}),
|
|
531
360
|
/**
|
|
532
361
|
*
|
|
533
362
|
* @summary Updates a user\'s rating for an item.
|
|
@@ -537,55 +366,44 @@ var UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
537
366
|
* @param {*} [options] Override http request option.
|
|
538
367
|
* @throws {RequiredError}
|
|
539
368
|
*/
|
|
540
|
-
updateUserItemRating:
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
571
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
572
|
-
return [2 /*return*/, {
|
|
573
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
574
|
-
options: localVarRequestOptions,
|
|
575
|
-
}];
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
});
|
|
579
|
-
},
|
|
369
|
+
updateUserItemRating: (userId, itemId, likes, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
370
|
+
// verify required parameter 'userId' is not null or undefined
|
|
371
|
+
assertParamExists('updateUserItemRating', 'userId', userId);
|
|
372
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
373
|
+
assertParamExists('updateUserItemRating', 'itemId', itemId);
|
|
374
|
+
const localVarPath = `/Users/{userId}/Items/{itemId}/Rating`
|
|
375
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
376
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
377
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
378
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
379
|
+
let baseOptions;
|
|
380
|
+
if (configuration) {
|
|
381
|
+
baseOptions = configuration.baseOptions;
|
|
382
|
+
}
|
|
383
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
384
|
+
const localVarHeaderParameter = {};
|
|
385
|
+
const localVarQueryParameter = {};
|
|
386
|
+
// authentication CustomAuthentication required
|
|
387
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
388
|
+
if (likes !== undefined) {
|
|
389
|
+
localVarQueryParameter['likes'] = likes;
|
|
390
|
+
}
|
|
391
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
393
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
394
|
+
return {
|
|
395
|
+
url: toPathString(localVarUrlObj),
|
|
396
|
+
options: localVarRequestOptions,
|
|
397
|
+
};
|
|
398
|
+
}),
|
|
580
399
|
};
|
|
581
400
|
};
|
|
582
|
-
exports.UserLibraryApiAxiosParamCreator = UserLibraryApiAxiosParamCreator;
|
|
583
401
|
/**
|
|
584
402
|
* UserLibraryApi - functional programming interface
|
|
585
403
|
* @export
|
|
586
404
|
*/
|
|
587
|
-
|
|
588
|
-
|
|
405
|
+
const UserLibraryApiFp = function (configuration) {
|
|
406
|
+
const localVarAxiosParamCreator = UserLibraryApiAxiosParamCreator(configuration);
|
|
589
407
|
return {
|
|
590
408
|
/**
|
|
591
409
|
*
|
|
@@ -595,17 +413,10 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
595
413
|
* @param {*} [options] Override http request option.
|
|
596
414
|
* @throws {RequiredError}
|
|
597
415
|
*/
|
|
598
|
-
deleteUserItemRating
|
|
599
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
600
|
-
|
|
601
|
-
return
|
|
602
|
-
switch (_a.label) {
|
|
603
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUserItemRating(userId, itemId, options)];
|
|
604
|
-
case 1:
|
|
605
|
-
localVarAxiosArgs = _a.sent();
|
|
606
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
607
|
-
}
|
|
608
|
-
});
|
|
416
|
+
deleteUserItemRating(userId, itemId, options) {
|
|
417
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserItemRating(userId, itemId, options);
|
|
419
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
609
420
|
});
|
|
610
421
|
},
|
|
611
422
|
/**
|
|
@@ -616,17 +427,10 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
616
427
|
* @param {*} [options] Override http request option.
|
|
617
428
|
* @throws {RequiredError}
|
|
618
429
|
*/
|
|
619
|
-
getIntros
|
|
620
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
621
|
-
|
|
622
|
-
return
|
|
623
|
-
switch (_a.label) {
|
|
624
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getIntros(userId, itemId, options)];
|
|
625
|
-
case 1:
|
|
626
|
-
localVarAxiosArgs = _a.sent();
|
|
627
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
628
|
-
}
|
|
629
|
-
});
|
|
430
|
+
getIntros(userId, itemId, options) {
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntros(userId, itemId, options);
|
|
433
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
630
434
|
});
|
|
631
435
|
},
|
|
632
436
|
/**
|
|
@@ -637,17 +441,10 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
637
441
|
* @param {*} [options] Override http request option.
|
|
638
442
|
* @throws {RequiredError}
|
|
639
443
|
*/
|
|
640
|
-
getItem
|
|
641
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
642
|
-
|
|
643
|
-
return
|
|
644
|
-
switch (_a.label) {
|
|
645
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getItem(userId, itemId, options)];
|
|
646
|
-
case 1:
|
|
647
|
-
localVarAxiosArgs = _a.sent();
|
|
648
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
649
|
-
}
|
|
650
|
-
});
|
|
444
|
+
getItem(userId, itemId, options) {
|
|
445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
446
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getItem(userId, itemId, options);
|
|
447
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
651
448
|
});
|
|
652
449
|
},
|
|
653
450
|
/**
|
|
@@ -667,17 +464,10 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
667
464
|
* @param {*} [options] Override http request option.
|
|
668
465
|
* @throws {RequiredError}
|
|
669
466
|
*/
|
|
670
|
-
getLatestMedia
|
|
671
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
672
|
-
|
|
673
|
-
return
|
|
674
|
-
switch (_a.label) {
|
|
675
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, 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
|
-
});
|
|
467
|
+
getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
|
|
468
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
469
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options);
|
|
470
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
681
471
|
});
|
|
682
472
|
},
|
|
683
473
|
/**
|
|
@@ -688,17 +478,10 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
688
478
|
* @param {*} [options] Override http request option.
|
|
689
479
|
* @throws {RequiredError}
|
|
690
480
|
*/
|
|
691
|
-
getLocalTrailers
|
|
692
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
693
|
-
|
|
694
|
-
return
|
|
695
|
-
switch (_a.label) {
|
|
696
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLocalTrailers(userId, itemId, options)];
|
|
697
|
-
case 1:
|
|
698
|
-
localVarAxiosArgs = _a.sent();
|
|
699
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
700
|
-
}
|
|
701
|
-
});
|
|
481
|
+
getLocalTrailers(userId, itemId, options) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLocalTrailers(userId, itemId, options);
|
|
484
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
702
485
|
});
|
|
703
486
|
},
|
|
704
487
|
/**
|
|
@@ -708,17 +491,10 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
708
491
|
* @param {*} [options] Override http request option.
|
|
709
492
|
* @throws {RequiredError}
|
|
710
493
|
*/
|
|
711
|
-
getRootFolder
|
|
712
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
713
|
-
|
|
714
|
-
return
|
|
715
|
-
switch (_a.label) {
|
|
716
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRootFolder(userId, options)];
|
|
717
|
-
case 1:
|
|
718
|
-
localVarAxiosArgs = _a.sent();
|
|
719
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
720
|
-
}
|
|
721
|
-
});
|
|
494
|
+
getRootFolder(userId, options) {
|
|
495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
496
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRootFolder(userId, options);
|
|
497
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
722
498
|
});
|
|
723
499
|
},
|
|
724
500
|
/**
|
|
@@ -729,17 +505,10 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
729
505
|
* @param {*} [options] Override http request option.
|
|
730
506
|
* @throws {RequiredError}
|
|
731
507
|
*/
|
|
732
|
-
getSpecialFeatures
|
|
733
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
734
|
-
|
|
735
|
-
return
|
|
736
|
-
switch (_a.label) {
|
|
737
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSpecialFeatures(userId, itemId, options)];
|
|
738
|
-
case 1:
|
|
739
|
-
localVarAxiosArgs = _a.sent();
|
|
740
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
741
|
-
}
|
|
742
|
-
});
|
|
508
|
+
getSpecialFeatures(userId, itemId, options) {
|
|
509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
510
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSpecialFeatures(userId, itemId, options);
|
|
511
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
743
512
|
});
|
|
744
513
|
},
|
|
745
514
|
/**
|
|
@@ -750,17 +519,10 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
750
519
|
* @param {*} [options] Override http request option.
|
|
751
520
|
* @throws {RequiredError}
|
|
752
521
|
*/
|
|
753
|
-
markFavoriteItem
|
|
754
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
755
|
-
|
|
756
|
-
return
|
|
757
|
-
switch (_a.label) {
|
|
758
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.markFavoriteItem(userId, itemId, options)];
|
|
759
|
-
case 1:
|
|
760
|
-
localVarAxiosArgs = _a.sent();
|
|
761
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
762
|
-
}
|
|
763
|
-
});
|
|
522
|
+
markFavoriteItem(userId, itemId, options) {
|
|
523
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
524
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markFavoriteItem(userId, itemId, options);
|
|
525
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
764
526
|
});
|
|
765
527
|
},
|
|
766
528
|
/**
|
|
@@ -771,17 +533,10 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
771
533
|
* @param {*} [options] Override http request option.
|
|
772
534
|
* @throws {RequiredError}
|
|
773
535
|
*/
|
|
774
|
-
unmarkFavoriteItem
|
|
775
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
776
|
-
|
|
777
|
-
return
|
|
778
|
-
switch (_a.label) {
|
|
779
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unmarkFavoriteItem(userId, itemId, options)];
|
|
780
|
-
case 1:
|
|
781
|
-
localVarAxiosArgs = _a.sent();
|
|
782
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
783
|
-
}
|
|
784
|
-
});
|
|
536
|
+
unmarkFavoriteItem(userId, itemId, options) {
|
|
537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unmarkFavoriteItem(userId, itemId, options);
|
|
539
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
785
540
|
});
|
|
786
541
|
},
|
|
787
542
|
/**
|
|
@@ -793,28 +548,20 @@ var UserLibraryApiFp = function (configuration) {
|
|
|
793
548
|
* @param {*} [options] Override http request option.
|
|
794
549
|
* @throws {RequiredError}
|
|
795
550
|
*/
|
|
796
|
-
updateUserItemRating
|
|
797
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
798
|
-
|
|
799
|
-
return
|
|
800
|
-
switch (_a.label) {
|
|
801
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateUserItemRating(userId, itemId, likes, options)];
|
|
802
|
-
case 1:
|
|
803
|
-
localVarAxiosArgs = _a.sent();
|
|
804
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
805
|
-
}
|
|
806
|
-
});
|
|
551
|
+
updateUserItemRating(userId, itemId, likes, options) {
|
|
552
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
553
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserItemRating(userId, itemId, likes, options);
|
|
554
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
807
555
|
});
|
|
808
556
|
},
|
|
809
557
|
};
|
|
810
558
|
};
|
|
811
|
-
exports.UserLibraryApiFp = UserLibraryApiFp;
|
|
812
559
|
/**
|
|
813
560
|
* UserLibraryApi - factory interface
|
|
814
561
|
* @export
|
|
815
562
|
*/
|
|
816
|
-
|
|
817
|
-
|
|
563
|
+
const UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
564
|
+
const localVarFp = UserLibraryApiFp(configuration);
|
|
818
565
|
return {
|
|
819
566
|
/**
|
|
820
567
|
*
|
|
@@ -824,8 +571,8 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
824
571
|
* @param {*} [options] Override http request option.
|
|
825
572
|
* @throws {RequiredError}
|
|
826
573
|
*/
|
|
827
|
-
deleteUserItemRating
|
|
828
|
-
return localVarFp.deleteUserItemRating(userId, itemId, options).then(
|
|
574
|
+
deleteUserItemRating(userId, itemId, options) {
|
|
575
|
+
return localVarFp.deleteUserItemRating(userId, itemId, options).then((request) => request(axios, basePath));
|
|
829
576
|
},
|
|
830
577
|
/**
|
|
831
578
|
*
|
|
@@ -835,8 +582,8 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
835
582
|
* @param {*} [options] Override http request option.
|
|
836
583
|
* @throws {RequiredError}
|
|
837
584
|
*/
|
|
838
|
-
getIntros
|
|
839
|
-
return localVarFp.getIntros(userId, itemId, options).then(
|
|
585
|
+
getIntros(userId, itemId, options) {
|
|
586
|
+
return localVarFp.getIntros(userId, itemId, options).then((request) => request(axios, basePath));
|
|
840
587
|
},
|
|
841
588
|
/**
|
|
842
589
|
*
|
|
@@ -846,8 +593,8 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
846
593
|
* @param {*} [options] Override http request option.
|
|
847
594
|
* @throws {RequiredError}
|
|
848
595
|
*/
|
|
849
|
-
getItem
|
|
850
|
-
return localVarFp.getItem(userId, itemId, options).then(
|
|
596
|
+
getItem(userId, itemId, options) {
|
|
597
|
+
return localVarFp.getItem(userId, itemId, options).then((request) => request(axios, basePath));
|
|
851
598
|
},
|
|
852
599
|
/**
|
|
853
600
|
*
|
|
@@ -866,8 +613,8 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
866
613
|
* @param {*} [options] Override http request option.
|
|
867
614
|
* @throws {RequiredError}
|
|
868
615
|
*/
|
|
869
|
-
getLatestMedia
|
|
870
|
-
return localVarFp.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options).then(
|
|
616
|
+
getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options) {
|
|
617
|
+
return localVarFp.getLatestMedia(userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options).then((request) => request(axios, basePath));
|
|
871
618
|
},
|
|
872
619
|
/**
|
|
873
620
|
*
|
|
@@ -877,8 +624,8 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
877
624
|
* @param {*} [options] Override http request option.
|
|
878
625
|
* @throws {RequiredError}
|
|
879
626
|
*/
|
|
880
|
-
getLocalTrailers
|
|
881
|
-
return localVarFp.getLocalTrailers(userId, itemId, options).then(
|
|
627
|
+
getLocalTrailers(userId, itemId, options) {
|
|
628
|
+
return localVarFp.getLocalTrailers(userId, itemId, options).then((request) => request(axios, basePath));
|
|
882
629
|
},
|
|
883
630
|
/**
|
|
884
631
|
*
|
|
@@ -887,8 +634,8 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
887
634
|
* @param {*} [options] Override http request option.
|
|
888
635
|
* @throws {RequiredError}
|
|
889
636
|
*/
|
|
890
|
-
getRootFolder
|
|
891
|
-
return localVarFp.getRootFolder(userId, options).then(
|
|
637
|
+
getRootFolder(userId, options) {
|
|
638
|
+
return localVarFp.getRootFolder(userId, options).then((request) => request(axios, basePath));
|
|
892
639
|
},
|
|
893
640
|
/**
|
|
894
641
|
*
|
|
@@ -898,8 +645,8 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
898
645
|
* @param {*} [options] Override http request option.
|
|
899
646
|
* @throws {RequiredError}
|
|
900
647
|
*/
|
|
901
|
-
getSpecialFeatures
|
|
902
|
-
return localVarFp.getSpecialFeatures(userId, itemId, options).then(
|
|
648
|
+
getSpecialFeatures(userId, itemId, options) {
|
|
649
|
+
return localVarFp.getSpecialFeatures(userId, itemId, options).then((request) => request(axios, basePath));
|
|
903
650
|
},
|
|
904
651
|
/**
|
|
905
652
|
*
|
|
@@ -909,8 +656,8 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
909
656
|
* @param {*} [options] Override http request option.
|
|
910
657
|
* @throws {RequiredError}
|
|
911
658
|
*/
|
|
912
|
-
markFavoriteItem
|
|
913
|
-
return localVarFp.markFavoriteItem(userId, itemId, options).then(
|
|
659
|
+
markFavoriteItem(userId, itemId, options) {
|
|
660
|
+
return localVarFp.markFavoriteItem(userId, itemId, options).then((request) => request(axios, basePath));
|
|
914
661
|
},
|
|
915
662
|
/**
|
|
916
663
|
*
|
|
@@ -920,8 +667,8 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
920
667
|
* @param {*} [options] Override http request option.
|
|
921
668
|
* @throws {RequiredError}
|
|
922
669
|
*/
|
|
923
|
-
unmarkFavoriteItem
|
|
924
|
-
return localVarFp.unmarkFavoriteItem(userId, itemId, options).then(
|
|
670
|
+
unmarkFavoriteItem(userId, itemId, options) {
|
|
671
|
+
return localVarFp.unmarkFavoriteItem(userId, itemId, options).then((request) => request(axios, basePath));
|
|
925
672
|
},
|
|
926
673
|
/**
|
|
927
674
|
*
|
|
@@ -932,23 +679,18 @@ var UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
932
679
|
* @param {*} [options] Override http request option.
|
|
933
680
|
* @throws {RequiredError}
|
|
934
681
|
*/
|
|
935
|
-
updateUserItemRating
|
|
936
|
-
return localVarFp.updateUserItemRating(userId, itemId, likes, options).then(
|
|
682
|
+
updateUserItemRating(userId, itemId, likes, options) {
|
|
683
|
+
return localVarFp.updateUserItemRating(userId, itemId, likes, options).then((request) => request(axios, basePath));
|
|
937
684
|
},
|
|
938
685
|
};
|
|
939
686
|
};
|
|
940
|
-
exports.UserLibraryApiFactory = UserLibraryApiFactory;
|
|
941
687
|
/**
|
|
942
688
|
* UserLibraryApi - object-oriented interface
|
|
943
689
|
* @export
|
|
944
690
|
* @class UserLibraryApi
|
|
945
691
|
* @extends {BaseAPI}
|
|
946
692
|
*/
|
|
947
|
-
|
|
948
|
-
__extends(UserLibraryApi, _super);
|
|
949
|
-
function UserLibraryApi() {
|
|
950
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
951
|
-
}
|
|
693
|
+
class UserLibraryApi extends BaseAPI {
|
|
952
694
|
/**
|
|
953
695
|
*
|
|
954
696
|
* @summary Deletes a user\'s saved personal rating for an item.
|
|
@@ -957,10 +699,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
957
699
|
* @throws {RequiredError}
|
|
958
700
|
* @memberof UserLibraryApi
|
|
959
701
|
*/
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
};
|
|
702
|
+
deleteUserItemRating(requestParameters, options) {
|
|
703
|
+
return UserLibraryApiFp(this.configuration).deleteUserItemRating(requestParameters.userId, requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
704
|
+
}
|
|
964
705
|
/**
|
|
965
706
|
*
|
|
966
707
|
* @summary Gets intros to play before the main media item plays.
|
|
@@ -969,10 +710,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
969
710
|
* @throws {RequiredError}
|
|
970
711
|
* @memberof UserLibraryApi
|
|
971
712
|
*/
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
};
|
|
713
|
+
getIntros(requestParameters, options) {
|
|
714
|
+
return UserLibraryApiFp(this.configuration).getIntros(requestParameters.userId, requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
715
|
+
}
|
|
976
716
|
/**
|
|
977
717
|
*
|
|
978
718
|
* @summary Gets an item from a user\'s library.
|
|
@@ -981,10 +721,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
981
721
|
* @throws {RequiredError}
|
|
982
722
|
* @memberof UserLibraryApi
|
|
983
723
|
*/
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
};
|
|
724
|
+
getItem(requestParameters, options) {
|
|
725
|
+
return UserLibraryApiFp(this.configuration).getItem(requestParameters.userId, requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
726
|
+
}
|
|
988
727
|
/**
|
|
989
728
|
*
|
|
990
729
|
* @summary Gets latest media.
|
|
@@ -993,10 +732,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
993
732
|
* @throws {RequiredError}
|
|
994
733
|
* @memberof UserLibraryApi
|
|
995
734
|
*/
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
};
|
|
735
|
+
getLatestMedia(requestParameters, options) {
|
|
736
|
+
return UserLibraryApiFp(this.configuration).getLatestMedia(requestParameters.userId, requestParameters.parentId, requestParameters.fields, requestParameters.includeItemTypes, requestParameters.isPlayed, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.enableUserData, requestParameters.limit, requestParameters.groupItems, options).then((request) => request(this.axios, this.basePath));
|
|
737
|
+
}
|
|
1000
738
|
/**
|
|
1001
739
|
*
|
|
1002
740
|
* @summary Gets local trailers for an item.
|
|
@@ -1005,10 +743,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
1005
743
|
* @throws {RequiredError}
|
|
1006
744
|
* @memberof UserLibraryApi
|
|
1007
745
|
*/
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
};
|
|
746
|
+
getLocalTrailers(requestParameters, options) {
|
|
747
|
+
return UserLibraryApiFp(this.configuration).getLocalTrailers(requestParameters.userId, requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
748
|
+
}
|
|
1012
749
|
/**
|
|
1013
750
|
*
|
|
1014
751
|
* @summary Gets the root folder from a user\'s library.
|
|
@@ -1017,10 +754,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
1017
754
|
* @throws {RequiredError}
|
|
1018
755
|
* @memberof UserLibraryApi
|
|
1019
756
|
*/
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
};
|
|
757
|
+
getRootFolder(requestParameters, options) {
|
|
758
|
+
return UserLibraryApiFp(this.configuration).getRootFolder(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
759
|
+
}
|
|
1024
760
|
/**
|
|
1025
761
|
*
|
|
1026
762
|
* @summary Gets special features for an item.
|
|
@@ -1029,10 +765,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
1029
765
|
* @throws {RequiredError}
|
|
1030
766
|
* @memberof UserLibraryApi
|
|
1031
767
|
*/
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
};
|
|
768
|
+
getSpecialFeatures(requestParameters, options) {
|
|
769
|
+
return UserLibraryApiFp(this.configuration).getSpecialFeatures(requestParameters.userId, requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
770
|
+
}
|
|
1036
771
|
/**
|
|
1037
772
|
*
|
|
1038
773
|
* @summary Marks an item as a favorite.
|
|
@@ -1041,10 +776,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
1041
776
|
* @throws {RequiredError}
|
|
1042
777
|
* @memberof UserLibraryApi
|
|
1043
778
|
*/
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
};
|
|
779
|
+
markFavoriteItem(requestParameters, options) {
|
|
780
|
+
return UserLibraryApiFp(this.configuration).markFavoriteItem(requestParameters.userId, requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
781
|
+
}
|
|
1048
782
|
/**
|
|
1049
783
|
*
|
|
1050
784
|
* @summary Unmarks item as a favorite.
|
|
@@ -1053,10 +787,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
1053
787
|
* @throws {RequiredError}
|
|
1054
788
|
* @memberof UserLibraryApi
|
|
1055
789
|
*/
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
};
|
|
790
|
+
unmarkFavoriteItem(requestParameters, options) {
|
|
791
|
+
return UserLibraryApiFp(this.configuration).unmarkFavoriteItem(requestParameters.userId, requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
792
|
+
}
|
|
1060
793
|
/**
|
|
1061
794
|
*
|
|
1062
795
|
* @summary Updates a user\'s rating for an item.
|
|
@@ -1065,10 +798,9 @@ var UserLibraryApi = /** @class */ (function (_super) {
|
|
|
1065
798
|
* @throws {RequiredError}
|
|
1066
799
|
* @memberof UserLibraryApi
|
|
1067
800
|
*/
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
}
|
|
1074
|
-
exports.UserLibraryApi = UserLibraryApi;
|
|
801
|
+
updateUserItemRating(requestParameters, options) {
|
|
802
|
+
return UserLibraryApiFp(this.configuration).updateUserItemRating(requestParameters.userId, requestParameters.itemId, requestParameters.likes, options).then((request) => request(this.axios, this.basePath));
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
export { UserLibraryApi, UserLibraryApiAxiosParamCreator, UserLibraryApiFactory, UserLibraryApiFp };
|