@jellyfin/sdk 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/lib/api.d.ts +0 -11
- package/lib/api.js +0 -14
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.d.ts +9 -12
- package/lib/generated-client/api/activity-log-api.js +15 -18
- package/lib/generated-client/api/api-key-api.d.ts +18 -18
- package/lib/generated-client/api/api-key-api.js +40 -38
- package/lib/generated-client/api/artists-api.d.ts +27 -90
- package/lib/generated-client/api/artists-api.js +43 -104
- package/lib/generated-client/api/audio-api.d.ts +81 -249
- package/lib/generated-client/api/audio-api.js +105 -266
- package/lib/generated-client/api/branding-api.d.ts +16 -16
- package/lib/generated-client/api/branding-api.js +31 -29
- package/lib/generated-client/api/channels-api.d.ts +33 -51
- package/lib/generated-client/api/channels-api.js +68 -82
- package/lib/generated-client/api/client-log-api.d.ts +13 -13
- package/lib/generated-client/api/client-log-api.js +17 -17
- package/lib/generated-client/api/collection-api.d.ts +19 -24
- package/lib/generated-client/api/collection-api.js +43 -46
- package/lib/generated-client/api/configuration-api.d.ts +28 -29
- package/lib/generated-client/api/configuration-api.js +65 -62
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +28 -27
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +71 -68
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +29 -33
- package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
- package/lib/generated-client/api/dynamic-hls-api.js +269 -628
- package/lib/generated-client/api/environment-api.d.ts +33 -35
- package/lib/generated-client/api/environment-api.js +76 -73
- package/lib/generated-client/api/filter-api.d.ts +17 -29
- package/lib/generated-client/api/filter-api.js +29 -40
- package/lib/generated-client/api/genres-api.d.ts +20 -38
- package/lib/generated-client/api/genres-api.js +29 -46
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +68 -71
- package/lib/generated-client/api/image-api.d.ts +206 -644
- package/lib/generated-client/api/image-api.js +501 -903
- package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
- package/lib/generated-client/api/instant-mix-api.js +113 -162
- package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
- package/lib/generated-client/api/item-lookup-api.js +155 -147
- package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
- package/lib/generated-client/api/item-refresh-api.js +15 -19
- package/lib/generated-client/api/item-update-api.d.ts +20 -22
- package/lib/generated-client/api/item-update-api.js +43 -43
- package/lib/generated-client/api/items-api.d.ts +44 -137
- package/lib/generated-client/api/items-api.js +63 -156
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +378 -359
- package/lib/generated-client/api/library-structure-api.d.ts +48 -58
- package/lib/generated-client/api/library-structure-api.js +110 -113
- package/lib/generated-client/api/live-tv-api.d.ts +224 -332
- package/lib/generated-client/api/live-tv-api.js +558 -626
- package/lib/generated-client/api/localization-api.d.ts +23 -23
- package/lib/generated-client/api/localization-api.js +45 -42
- package/lib/generated-client/api/lyrics-api.d.ts +39 -42
- package/lib/generated-client/api/lyrics-api.js +87 -85
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +77 -95
- package/lib/generated-client/api/media-segments-api.d.ts +95 -0
- package/lib/generated-client/api/media-segments-api.js +123 -0
- package/lib/generated-client/api/movies-api.d.ts +10 -14
- package/lib/generated-client/api/movies-api.js +15 -19
- package/lib/generated-client/api/music-genres-api.d.ts +20 -38
- package/lib/generated-client/api/music-genres-api.js +29 -46
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +79 -78
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +29 -41
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +207 -154
- package/lib/generated-client/api/playstate-api.d.ts +54 -80
- package/lib/generated-client/api/playstate-api.js +127 -145
- package/lib/generated-client/api/plugins-api.d.ts +48 -52
- package/lib/generated-client/api/plugins-api.js +124 -120
- package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
- package/lib/generated-client/api/quick-connect-api.js +48 -46
- package/lib/generated-client/api/remote-image-api.d.ts +21 -28
- package/lib/generated-client/api/remote-image-api.js +43 -48
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
- package/lib/generated-client/api/scheduled-tasks-api.js +71 -69
- package/lib/generated-client/api/search-api.d.ts +11 -28
- package/lib/generated-client/api/search-api.js +15 -32
- package/lib/generated-client/api/session-api.d.ts +90 -117
- package/lib/generated-client/api/session-api.js +216 -228
- package/lib/generated-client/api/startup-api.d.ts +37 -37
- package/lib/generated-client/api/startup-api.js +87 -81
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +29 -45
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +136 -158
- package/lib/generated-client/api/suggestions-api.d.ts +11 -16
- package/lib/generated-client/api/suggestions-api.js +15 -20
- package/lib/generated-client/api/sync-play-api.d.ts +120 -120
- package/lib/generated-client/api/sync-play-api.js +280 -260
- package/lib/generated-client/api/system-api.d.ts +49 -49
- package/lib/generated-client/api/system-api.js +111 -102
- package/lib/generated-client/api/time-sync-api.d.ts +8 -8
- package/lib/generated-client/api/time-sync-api.js +11 -11
- package/lib/generated-client/api/tmdb-api.d.ts +8 -8
- package/lib/generated-client/api/tmdb-api.js +12 -12
- package/lib/generated-client/api/trailers-api.d.ts +19 -102
- package/lib/generated-client/api/trailers-api.js +15 -98
- package/lib/generated-client/api/trickplay-api.d.ts +13 -18
- package/lib/generated-client/api/trickplay-api.js +29 -33
- package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
- package/lib/generated-client/api/tv-shows-api.js +57 -99
- package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
- package/lib/generated-client/api/universal-audio-api.js +41 -64
- package/lib/generated-client/api/user-api.d.ts +83 -88
- package/lib/generated-client/api/user-api.js +186 -178
- package/lib/generated-client/api/user-library-api.d.ts +59 -78
- package/lib/generated-client/api/user-library-api.js +141 -151
- package/lib/generated-client/api/user-views-api.d.ts +16 -19
- package/lib/generated-client/api/user-views-api.js +29 -31
- package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
- package/lib/generated-client/api/video-attachments-api.js +14 -16
- package/lib/generated-client/api/videos-api.d.ts +97 -274
- package/lib/generated-client/api/videos-api.js +147 -314
- package/lib/generated-client/api/years-api.d.ts +21 -36
- package/lib/generated-client/api/years-api.js +29 -43
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/base.d.ts +15 -4
- package/lib/generated-client/base.js +8 -4
- package/lib/generated-client/common.d.ts +3 -3
- package/lib/generated-client/common.js +30 -24
- package/lib/generated-client/configuration.d.ts +8 -0
- package/lib/generated-client/configuration.js +1 -0
- package/lib/generated-client/index.js +8 -1
- package/lib/generated-client/models/access-schedule.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/album-info.d.ts +5 -5
- package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/artist-info.d.ts +3 -3
- package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/authentication-result.d.ts +7 -7
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +26 -26
- package/lib/generated-client/models/base-item-person.d.ts +2 -2
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/book-info.d.ts +2 -2
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/box-set-info.d.ts +2 -2
- package/lib/generated-client/models/channel-features.d.ts +3 -3
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
- package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
- package/lib/generated-client/models/client-capabilities.d.ts +3 -3
- package/lib/generated-client/models/codec-profile.d.ts +15 -9
- package/lib/generated-client/models/container-profile.d.ts +12 -6
- package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
- package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
- package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
- package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-dto.d.ts +84 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +1 -1
- package/lib/generated-client/models/device-profile.d.ts +8 -8
- package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
- package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
- package/lib/generated-client/models/encoder-preset.d.ts +29 -0
- package/lib/generated-client/models/encoder-preset.js +32 -0
- package/lib/generated-client/models/encoding-options.d.ts +43 -19
- package/lib/generated-client/models/external-id-info.d.ts +2 -1
- package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
- package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
- package/lib/generated-client/models/general-command-message.d.ts +2 -2
- package/lib/generated-client/models/general-command.d.ts +3 -3
- package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-info-dto.d.ts +1 -1
- package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-state-update.d.ts +2 -2
- package/lib/generated-client/models/group-update.d.ts +23 -5
- package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
- package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
- package/lib/generated-client/models/image-info.d.ts +1 -1
- package/lib/generated-client/models/image-option.d.ts +1 -1
- package/lib/generated-client/models/image-provider-info.d.ts +1 -1
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
- package/lib/generated-client/models/index.d.ts +13 -6
- package/lib/generated-client/models/index.js +7 -1
- package/lib/generated-client/models/installation-info.d.ts +1 -1
- package/lib/generated-client/models/library-changed-message.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
- package/lib/generated-client/models/library-options.d.ts +57 -3
- package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
- package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
- package/lib/generated-client/models/live-stream-response.d.ts +1 -1
- package/lib/generated-client/models/live-tv-info.d.ts +1 -1
- package/lib/generated-client/models/live-tv-options.d.ts +2 -2
- package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +2 -2
- package/lib/generated-client/models/media-path-dto.d.ts +1 -1
- package/lib/generated-client/models/media-path-info.d.ts +0 -6
- package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
- package/lib/generated-client/models/media-segment-type.d.ts +24 -0
- package/lib/generated-client/models/media-segment-type.js +27 -0
- package/lib/generated-client/models/media-source-info.d.ts +29 -11
- package/lib/generated-client/models/media-stream.d.ts +17 -5
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/movie-info.d.ts +2 -2
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/music-video-info.d.ts +2 -2
- package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
- package/lib/generated-client/models/package-info.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
- package/lib/generated-client/models/play-message.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update.d.ts +4 -4
- package/lib/generated-client/models/play-request.d.ts +1 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
- package/lib/generated-client/models/playback-info-response.d.ts +2 -2
- package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
- package/lib/generated-client/models/playback-start-info.d.ts +5 -5
- package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
- package/lib/generated-client/models/player-state-info.d.ts +3 -3
- package/lib/generated-client/models/playlist-dto.d.ts +36 -0
- package/lib/generated-client/models/playstate-message.d.ts +2 -2
- package/lib/generated-client/models/playstate-request.d.ts +1 -1
- package/lib/generated-client/models/plugin-info.d.ts +1 -1
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
- package/lib/generated-client/models/problem-details.d.ts +1 -1
- package/lib/generated-client/models/profile-condition.d.ts +2 -2
- package/lib/generated-client/models/query-filters.d.ts +1 -1
- package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
- package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
- package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
- package/lib/generated-client/models/remote-image-info.d.ts +2 -2
- package/lib/generated-client/models/remote-image-result.d.ts +1 -1
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
- package/lib/generated-client/models/remote-search-result.d.ts +2 -2
- package/lib/generated-client/models/restart-required-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
- package/lib/generated-client/models/search-hint-result.d.ts +1 -1
- package/lib/generated-client/models/search-hint.d.ts +3 -3
- package/lib/generated-client/models/send-command.d.ts +1 -1
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/series-info.d.ts +2 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/server-configuration.d.ts +8 -14
- package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
- package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
- package/lib/generated-client/models/session-info-dto.d.ts +199 -0
- package/lib/generated-client/models/session-info.d.ts +8 -8
- package/lib/generated-client/models/sessions-message.d.ts +4 -4
- package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
- package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/song-info.d.ts +2 -2
- package/lib/generated-client/models/string-group-update.d.ts +1 -1
- package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
- package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
- package/lib/generated-client/models/system-info.d.ts +2 -2
- package/lib/generated-client/models/task-info.d.ts +3 -3
- package/lib/generated-client/models/task-result.d.ts +1 -1
- package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
- package/lib/generated-client/models/theme-media-result.d.ts +2 -2
- package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
- package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
- package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
- package/lib/generated-client/models/tonemapping-mode.js +26 -0
- package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
- package/lib/generated-client/models/tonemapping-range.js +24 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/trailer-info.d.ts +2 -2
- package/lib/generated-client/models/transcode-reason.d.ts +1 -0
- package/lib/generated-client/models/transcode-reason.js +2 -1
- package/lib/generated-client/models/transcoding-info.d.ts +16 -16
- package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
- package/lib/generated-client/models/trickplay-options.d.ts +8 -2
- package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
- package/lib/generated-client/models/type-options.d.ts +1 -1
- package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
- package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
- package/lib/generated-client/models/user-configuration.d.ts +1 -1
- package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
- package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
- package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
- package/lib/generated-client/models/user-dto.d.ts +2 -2
- package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
- package/lib/generated-client/models/user-policy.d.ts +3 -3
- package/lib/generated-client/models/user-updated-message.d.ts +2 -2
- package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
- package/lib/generated-client/models/web-socket-message.d.ts +2 -2
- package/lib/utils/address-candidates.js +15 -10
- package/lib/utils/api/image-urls-api.js +16 -4
- package/lib/utils/api/index.d.ts +1 -0
- package/lib/utils/api/index.js +1 -0
- package/lib/utils/api/media-segments-api.d.ts +8 -0
- package/lib/utils/api/media-segments-api.js +12 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/url/index.d.ts +16 -3
- package/lib/utils/url/index.js +26 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +13 -12
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
package/README.md
CHANGED
|
@@ -35,6 +35,8 @@ yarn add @jellyfin/sdk
|
|
|
35
35
|
|
|
36
36
|
| SDK Version | Jellyfin Version |
|
|
37
37
|
|:-:|:-:|
|
|
38
|
+
| 0.11.0 | 10.10.x |
|
|
39
|
+
| 0.10.0 | 10.9.x |
|
|
38
40
|
| 0.9.0 | 10.9.x |
|
|
39
41
|
| 0.8.2 - 0.6.0 | 10.8.1 - 10.8.13 |
|
|
40
42
|
| 0.5.0 | 10.8.0 |
|
|
@@ -107,6 +109,14 @@ await api.logout();
|
|
|
107
109
|
|
|
108
110
|
## Breaking Changes
|
|
109
111
|
|
|
112
|
+
### v0.11.0
|
|
113
|
+
|
|
114
|
+
* Updated OpenAPI spec for Jellyfin 10.10.0. [#816](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/816)
|
|
115
|
+
|
|
116
|
+
### v0.10.0
|
|
117
|
+
|
|
118
|
+
* Updated build target to ES2018. [#712](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/712)
|
|
119
|
+
|
|
110
120
|
### v0.9.0
|
|
111
121
|
|
|
112
122
|
* Updated OpenAPI spec for Jellyfin 10.9.1. [#694](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/694)
|
package/lib/api.d.ts
CHANGED
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
7
7
|
import { Configuration } from './generated-client/configuration';
|
|
8
8
|
import type { AuthenticationResult } from './generated-client/models/authentication-result';
|
|
9
|
-
import { ImageType } from './generated-client/models/image-type';
|
|
10
9
|
import type { ClientInfo, DeviceInfo } from './models';
|
|
11
|
-
import type { ImageRequestParameters } from './models/api/image-request-parameters';
|
|
12
10
|
/** The authorization header field name. */
|
|
13
11
|
export declare const AUTHORIZATION_HEADER = "Authorization";
|
|
14
12
|
/** Class representing the Jellyfin API. */
|
|
@@ -30,14 +28,5 @@ export declare class Api {
|
|
|
30
28
|
* Convenience method for logging out and updating the internal state.
|
|
31
29
|
*/
|
|
32
30
|
logout(): Promise<AxiosResponse<never> | AxiosResponse<void>>;
|
|
33
|
-
/**
|
|
34
|
-
* Get an item image URL.
|
|
35
|
-
* @deprecated Use {@link ImageUrlsApi.getItemImageUrlById} instead.
|
|
36
|
-
* @param itemId The Item ID.
|
|
37
|
-
* @param imageType An optional Image Type (Primary by default).
|
|
38
|
-
* @param params Additional request parameters.
|
|
39
|
-
* @returns The image URL.
|
|
40
|
-
*/
|
|
41
|
-
getItemImageUrl(itemId: string, imageType?: ImageType, params?: ImageRequestParameters): string | undefined;
|
|
42
31
|
get authorizationHeader(): string;
|
|
43
32
|
}
|
package/lib/api.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
2
|
import { Configuration } from './generated-client/configuration.js';
|
|
3
|
-
import { ImageType } from './generated-client/models/image-type.js';
|
|
4
3
|
import { getAuthorizationHeader } from './utils/authentication.js';
|
|
5
|
-
import { getImageApi } from './utils/api/image-api.js';
|
|
6
4
|
import { getSessionApi } from './utils/api/session-api.js';
|
|
7
5
|
import { getUserApi } from './utils/api/user-api.js';
|
|
8
6
|
|
|
@@ -49,18 +47,6 @@ class Api {
|
|
|
49
47
|
return response;
|
|
50
48
|
});
|
|
51
49
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Get an item image URL.
|
|
54
|
-
* @deprecated Use {@link ImageUrlsApi.getItemImageUrlById} instead.
|
|
55
|
-
* @param itemId The Item ID.
|
|
56
|
-
* @param imageType An optional Image Type (Primary by default).
|
|
57
|
-
* @param params Additional request parameters.
|
|
58
|
-
* @returns The image URL.
|
|
59
|
-
*/
|
|
60
|
-
getItemImageUrl(itemId, imageType = ImageType.Primary, params = {}) {
|
|
61
|
-
return getImageApi(this)
|
|
62
|
-
.getItemImageUrlById(itemId, imageType, params);
|
|
63
|
-
}
|
|
64
50
|
get authorizationHeader() {
|
|
65
51
|
return getAuthorizationHeader(this.clientInfo, this.deviceInfo, this.accessToken);
|
|
66
52
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import { RecommendedServerInfoScore } from '../models/recommended-server-info.js';
|
|
3
2
|
import { getAddressCandidates } from '../utils/address-candidates.js';
|
|
4
3
|
import { RecommendedServerDiscovery } from './recommended-server-discovery.js';
|
|
@@ -49,10 +48,8 @@ class DiscoveryService {
|
|
|
49
48
|
* @param minimumScore The minimum server score to include in the results.
|
|
50
49
|
* @returns A list of RecommendedServerInfo from the possible server addresses.
|
|
51
50
|
*/
|
|
52
|
-
getRecommendedServers(servers, minimumScore) {
|
|
53
|
-
return
|
|
54
|
-
return this.recommendedServerDiscovery.discover(servers, minimumScore);
|
|
55
|
-
});
|
|
51
|
+
async getRecommendedServers(servers, minimumScore) {
|
|
52
|
+
return this.recommendedServerDiscovery.discover(servers, minimumScore);
|
|
56
53
|
}
|
|
57
54
|
/**
|
|
58
55
|
* Gets a list of recommended server information from the address
|
|
@@ -61,10 +58,8 @@ class DiscoveryService {
|
|
|
61
58
|
* @param minimumScore The minimum server score to include in the results.
|
|
62
59
|
* @returns A list of RecommendedServerInfo from the address candidates.
|
|
63
60
|
*/
|
|
64
|
-
getRecommendedServerCandidates(input, minimumScore) {
|
|
65
|
-
return
|
|
66
|
-
return this.getRecommendedServers(this.getAddressCandidates(input), minimumScore);
|
|
67
|
-
});
|
|
61
|
+
async getRecommendedServerCandidates(input, minimumScore) {
|
|
62
|
+
return this.getRecommendedServers(this.getAddressCandidates(input), minimumScore);
|
|
68
63
|
}
|
|
69
64
|
}
|
|
70
65
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import { RecommendedServerInfoScore } from '../models/recommended-server-info.js';
|
|
3
2
|
import { SystemInfoIssue, ProductNameIssue, VersionMissingIssue, VersionUnsupportedIssue, VersionOutdatedIssue, SlowResponseIssue } from '../models/recommended-server-issue.js';
|
|
4
3
|
import { getSystemApi } from '../utils/api/system-api.js';
|
|
@@ -82,33 +81,29 @@ class RecommendedServerDiscovery {
|
|
|
82
81
|
* @param address The server address.
|
|
83
82
|
* @returns The resulting RecommendedServerInfo.
|
|
84
83
|
*/
|
|
85
|
-
fetchRecommendedServerInfo(address) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.then(result => toRecommendedServerInfo(result));
|
|
101
|
-
});
|
|
84
|
+
async fetchRecommendedServerInfo(address) {
|
|
85
|
+
const api = this.jellyfin.createApi(address);
|
|
86
|
+
const startTime = Date.now();
|
|
87
|
+
return getSystemApi(api).getPublicSystemInfo({ timeout: HTTP_TIMEOUT })
|
|
88
|
+
.then(response => ({
|
|
89
|
+
address,
|
|
90
|
+
response,
|
|
91
|
+
responseTime: Date.now() - startTime
|
|
92
|
+
}))
|
|
93
|
+
.catch(error => ({
|
|
94
|
+
address,
|
|
95
|
+
error,
|
|
96
|
+
responseTime: Date.now() - startTime
|
|
97
|
+
}))
|
|
98
|
+
.then(result => toRecommendedServerInfo(result));
|
|
102
99
|
}
|
|
103
100
|
/**
|
|
104
101
|
* Fetches the RecommendedServerInfo for multiple server addresses.
|
|
105
102
|
* @param servers An array of server addresses.
|
|
106
103
|
* @returns The RecommendedServerInfo for each address.
|
|
107
104
|
*/
|
|
108
|
-
discover(
|
|
109
|
-
return
|
|
110
|
-
return (yield Promise.all(servers.map(server => this.fetchRecommendedServerInfo(server)))).filter(serverInfo => serverInfo.score >= minimumScore);
|
|
111
|
-
});
|
|
105
|
+
async discover(servers, minimumScore = RecommendedServerInfoScore.BAD) {
|
|
106
|
+
return (await Promise.all(servers.map(server => this.fetchRecommendedServerInfo(server)))).filter(serverInfo => serverInfo.score >= minimumScore);
|
|
112
107
|
}
|
|
113
108
|
}
|
|
114
109
|
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
-
import { ActivityLogEntryQueryResult } from '../models';
|
|
11
|
+
import type { Configuration } from '../configuration';
|
|
12
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import type { ActivityLogEntryQueryResult } from '../models';
|
|
15
15
|
/**
|
|
16
16
|
* ActivityLogApi - axios parameter creator
|
|
17
17
|
* @export
|
|
@@ -27,7 +27,7 @@ export declare const ActivityLogApiAxiosParamCreator: (configuration?: Configura
|
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
getLogEntries: (startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, options?:
|
|
30
|
+
getLogEntries: (startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* ActivityLogApi - functional programming interface
|
|
@@ -44,7 +44,7 @@ export declare const ActivityLogApiFp: (configuration?: Configuration) => {
|
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
*/
|
|
47
|
-
getLogEntries(startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, options?:
|
|
47
|
+
getLogEntries(startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityLogEntryQueryResult>>;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* ActivityLogApi - factory interface
|
|
@@ -54,14 +54,11 @@ export declare const ActivityLogApiFactory: (configuration?: Configuration, base
|
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @summary Gets activity log entries.
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
59
|
-
* @param {string} [minDate] Optional. The minimum date. Format = ISO.
|
|
60
|
-
* @param {boolean} [hasUserId] Optional. Filter log entries if it has user id, or not.
|
|
57
|
+
* @param {ActivityLogApiGetLogEntriesRequest} requestParameters Request parameters.
|
|
61
58
|
* @param {*} [options] Override http request option.
|
|
62
59
|
* @throws {RequiredError}
|
|
63
60
|
*/
|
|
64
|
-
getLogEntries(
|
|
61
|
+
getLogEntries(requestParameters?: ActivityLogApiGetLogEntriesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ActivityLogEntryQueryResult>;
|
|
65
62
|
};
|
|
66
63
|
/**
|
|
67
64
|
* Request parameters for getLogEntries operation in ActivityLogApi.
|
|
@@ -109,5 +106,5 @@ export declare class ActivityLogApi extends BaseAPI {
|
|
|
109
106
|
* @throws {RequiredError}
|
|
110
107
|
* @memberof ActivityLogApi
|
|
111
108
|
*/
|
|
112
|
-
getLogEntries(requestParameters?: ActivityLogApiGetLogEntriesRequest, options?:
|
|
109
|
+
getLogEntries(requestParameters?: ActivityLogApiGetLogEntriesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ActivityLogEntryQueryResult, any>>;
|
|
113
110
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
7
6
|
/* eslint-disable */
|
|
@@ -31,7 +30,7 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
|
|
|
31
30
|
* @param {*} [options] Override http request option.
|
|
32
31
|
* @throws {RequiredError}
|
|
33
32
|
*/
|
|
34
|
-
getLogEntries:
|
|
33
|
+
getLogEntries: async (startIndex, limit, minDate, hasUserId, options = {}) => {
|
|
35
34
|
const localVarPath = `/System/ActivityLog/Entries`;
|
|
36
35
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37
36
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -39,11 +38,11 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
|
|
|
39
38
|
if (configuration) {
|
|
40
39
|
baseOptions = configuration.baseOptions;
|
|
41
40
|
}
|
|
42
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
43
42
|
const localVarHeaderParameter = {};
|
|
44
43
|
const localVarQueryParameter = {};
|
|
45
44
|
// authentication CustomAuthentication required
|
|
46
|
-
|
|
45
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
47
46
|
if (startIndex !== undefined) {
|
|
48
47
|
localVarQueryParameter['startIndex'] = startIndex;
|
|
49
48
|
}
|
|
@@ -60,12 +59,12 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
|
|
|
60
59
|
}
|
|
61
60
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62
61
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
-
localVarRequestOptions.headers =
|
|
62
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
64
63
|
return {
|
|
65
64
|
url: toPathString(localVarUrlObj),
|
|
66
65
|
options: localVarRequestOptions,
|
|
67
66
|
};
|
|
68
|
-
}
|
|
67
|
+
},
|
|
69
68
|
};
|
|
70
69
|
};
|
|
71
70
|
/**
|
|
@@ -85,11 +84,12 @@ const ActivityLogApiFp = function (configuration) {
|
|
|
85
84
|
* @param {*} [options] Override http request option.
|
|
86
85
|
* @throws {RequiredError}
|
|
87
86
|
*/
|
|
88
|
-
getLogEntries(startIndex, limit, minDate, hasUserId, options) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
async getLogEntries(startIndex, limit, minDate, hasUserId, options) {
|
|
88
|
+
var _a, _b, _c;
|
|
89
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLogEntries(startIndex, limit, minDate, hasUserId, options);
|
|
90
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
91
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ActivityLogApi.getLogEntries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
92
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
93
93
|
},
|
|
94
94
|
};
|
|
95
95
|
};
|
|
@@ -103,15 +103,12 @@ const ActivityLogApiFactory = function (configuration, basePath, axios) {
|
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
105
|
* @summary Gets activity log entries.
|
|
106
|
-
* @param {
|
|
107
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
108
|
-
* @param {string} [minDate] Optional. The minimum date. Format = ISO.
|
|
109
|
-
* @param {boolean} [hasUserId] Optional. Filter log entries if it has user id, or not.
|
|
106
|
+
* @param {ActivityLogApiGetLogEntriesRequest} requestParameters Request parameters.
|
|
110
107
|
* @param {*} [options] Override http request option.
|
|
111
108
|
* @throws {RequiredError}
|
|
112
109
|
*/
|
|
113
|
-
getLogEntries(
|
|
114
|
-
return localVarFp.getLogEntries(startIndex, limit, minDate, hasUserId, options).then((request) => request(axios, basePath));
|
|
110
|
+
getLogEntries(requestParameters = {}, options) {
|
|
111
|
+
return localVarFp.getLogEntries(requestParameters.startIndex, requestParameters.limit, requestParameters.minDate, requestParameters.hasUserId, options).then((request) => request(axios, basePath));
|
|
115
112
|
},
|
|
116
113
|
};
|
|
117
114
|
};
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
-
import { AuthenticationInfoQueryResult } from '../models';
|
|
11
|
+
import type { Configuration } from '../configuration';
|
|
12
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import type { AuthenticationInfoQueryResult } from '../models';
|
|
15
15
|
/**
|
|
16
16
|
* ApiKeyApi - axios parameter creator
|
|
17
17
|
* @export
|
|
@@ -24,14 +24,14 @@ export declare const ApiKeyApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
24
24
|
* @param {*} [options] Override http request option.
|
|
25
25
|
* @throws {RequiredError}
|
|
26
26
|
*/
|
|
27
|
-
createKey: (app: string, options?:
|
|
27
|
+
createKey: (app: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @summary Get all keys.
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
|
-
getKeys: (options?:
|
|
34
|
+
getKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @summary Remove an api key.
|
|
@@ -39,7 +39,7 @@ export declare const ApiKeyApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
39
39
|
* @param {*} [options] Override http request option.
|
|
40
40
|
* @throws {RequiredError}
|
|
41
41
|
*/
|
|
42
|
-
revokeKey: (key: string, options?:
|
|
42
|
+
revokeKey: (key: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* ApiKeyApi - functional programming interface
|
|
@@ -53,14 +53,14 @@ export declare const ApiKeyApiFp: (configuration?: Configuration) => {
|
|
|
53
53
|
* @param {*} [options] Override http request option.
|
|
54
54
|
* @throws {RequiredError}
|
|
55
55
|
*/
|
|
56
|
-
createKey(app: string, options?:
|
|
56
|
+
createKey(app: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
* @summary Get all keys.
|
|
60
60
|
* @param {*} [options] Override http request option.
|
|
61
61
|
* @throws {RequiredError}
|
|
62
62
|
*/
|
|
63
|
-
getKeys(options?:
|
|
63
|
+
getKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationInfoQueryResult>>;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @summary Remove an api key.
|
|
@@ -68,7 +68,7 @@ export declare const ApiKeyApiFp: (configuration?: Configuration) => {
|
|
|
68
68
|
* @param {*} [options] Override http request option.
|
|
69
69
|
* @throws {RequiredError}
|
|
70
70
|
*/
|
|
71
|
-
revokeKey(key: string, options?:
|
|
71
|
+
revokeKey(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
* ApiKeyApi - factory interface
|
|
@@ -78,26 +78,26 @@ export declare const ApiKeyApiFactory: (configuration?: Configuration, basePath?
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @summary Create a new api key.
|
|
81
|
-
* @param {
|
|
81
|
+
* @param {ApiKeyApiCreateKeyRequest} requestParameters Request parameters.
|
|
82
82
|
* @param {*} [options] Override http request option.
|
|
83
83
|
* @throws {RequiredError}
|
|
84
84
|
*/
|
|
85
|
-
createKey(
|
|
85
|
+
createKey(requestParameters: ApiKeyApiCreateKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @summary Get all keys.
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
getKeys(options?:
|
|
92
|
+
getKeys(options?: RawAxiosRequestConfig): AxiosPromise<AuthenticationInfoQueryResult>;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @summary Remove an api key.
|
|
96
|
-
* @param {
|
|
96
|
+
* @param {ApiKeyApiRevokeKeyRequest} requestParameters Request parameters.
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
|
-
revokeKey(
|
|
100
|
+
revokeKey(requestParameters: ApiKeyApiRevokeKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
101
101
|
};
|
|
102
102
|
/**
|
|
103
103
|
* Request parameters for createKey operation in ApiKeyApi.
|
|
@@ -140,7 +140,7 @@ export declare class ApiKeyApi extends BaseAPI {
|
|
|
140
140
|
* @throws {RequiredError}
|
|
141
141
|
* @memberof ApiKeyApi
|
|
142
142
|
*/
|
|
143
|
-
createKey(requestParameters: ApiKeyApiCreateKeyRequest, options?:
|
|
143
|
+
createKey(requestParameters: ApiKeyApiCreateKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
144
144
|
/**
|
|
145
145
|
*
|
|
146
146
|
* @summary Get all keys.
|
|
@@ -148,7 +148,7 @@ export declare class ApiKeyApi extends BaseAPI {
|
|
|
148
148
|
* @throws {RequiredError}
|
|
149
149
|
* @memberof ApiKeyApi
|
|
150
150
|
*/
|
|
151
|
-
getKeys(options?:
|
|
151
|
+
getKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthenticationInfoQueryResult, any>>;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @summary Remove an api key.
|
|
@@ -157,5 +157,5 @@ export declare class ApiKeyApi extends BaseAPI {
|
|
|
157
157
|
* @throws {RequiredError}
|
|
158
158
|
* @memberof ApiKeyApi
|
|
159
159
|
*/
|
|
160
|
-
revokeKey(requestParameters: ApiKeyApiRevokeKeyRequest, options?:
|
|
160
|
+
revokeKey(requestParameters: ApiKeyApiRevokeKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
161
161
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
7
6
|
/* eslint-disable */
|
|
@@ -28,7 +27,7 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
createKey:
|
|
30
|
+
createKey: async (app, options = {}) => {
|
|
32
31
|
// verify required parameter 'app' is not null or undefined
|
|
33
32
|
assertParamExists('createKey', 'app', app);
|
|
34
33
|
const localVarPath = `/Auth/Keys`;
|
|
@@ -38,29 +37,29 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
38
37
|
if (configuration) {
|
|
39
38
|
baseOptions = configuration.baseOptions;
|
|
40
39
|
}
|
|
41
|
-
const localVarRequestOptions =
|
|
40
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
42
41
|
const localVarHeaderParameter = {};
|
|
43
42
|
const localVarQueryParameter = {};
|
|
44
43
|
// authentication CustomAuthentication required
|
|
45
|
-
|
|
44
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
46
45
|
if (app !== undefined) {
|
|
47
46
|
localVarQueryParameter['app'] = app;
|
|
48
47
|
}
|
|
49
48
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50
49
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51
|
-
localVarRequestOptions.headers =
|
|
50
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
52
51
|
return {
|
|
53
52
|
url: toPathString(localVarUrlObj),
|
|
54
53
|
options: localVarRequestOptions,
|
|
55
54
|
};
|
|
56
|
-
}
|
|
55
|
+
},
|
|
57
56
|
/**
|
|
58
57
|
*
|
|
59
58
|
* @summary Get all keys.
|
|
60
59
|
* @param {*} [options] Override http request option.
|
|
61
60
|
* @throws {RequiredError}
|
|
62
61
|
*/
|
|
63
|
-
getKeys:
|
|
62
|
+
getKeys: async (options = {}) => {
|
|
64
63
|
const localVarPath = `/Auth/Keys`;
|
|
65
64
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
66
65
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -68,19 +67,19 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
68
67
|
if (configuration) {
|
|
69
68
|
baseOptions = configuration.baseOptions;
|
|
70
69
|
}
|
|
71
|
-
const localVarRequestOptions =
|
|
70
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
72
71
|
const localVarHeaderParameter = {};
|
|
73
72
|
const localVarQueryParameter = {};
|
|
74
73
|
// authentication CustomAuthentication required
|
|
75
|
-
|
|
74
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
76
75
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
76
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
-
localVarRequestOptions.headers =
|
|
77
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
79
78
|
return {
|
|
80
79
|
url: toPathString(localVarUrlObj),
|
|
81
80
|
options: localVarRequestOptions,
|
|
82
81
|
};
|
|
83
|
-
}
|
|
82
|
+
},
|
|
84
83
|
/**
|
|
85
84
|
*
|
|
86
85
|
* @summary Remove an api key.
|
|
@@ -88,7 +87,7 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
88
87
|
* @param {*} [options] Override http request option.
|
|
89
88
|
* @throws {RequiredError}
|
|
90
89
|
*/
|
|
91
|
-
revokeKey:
|
|
90
|
+
revokeKey: async (key, options = {}) => {
|
|
92
91
|
// verify required parameter 'key' is not null or undefined
|
|
93
92
|
assertParamExists('revokeKey', 'key', key);
|
|
94
93
|
const localVarPath = `/Auth/Keys/{key}`
|
|
@@ -99,19 +98,19 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
99
98
|
if (configuration) {
|
|
100
99
|
baseOptions = configuration.baseOptions;
|
|
101
100
|
}
|
|
102
|
-
const localVarRequestOptions =
|
|
101
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
103
102
|
const localVarHeaderParameter = {};
|
|
104
103
|
const localVarQueryParameter = {};
|
|
105
104
|
// authentication CustomAuthentication required
|
|
106
|
-
|
|
105
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
107
106
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
108
107
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
109
|
-
localVarRequestOptions.headers =
|
|
108
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
110
109
|
return {
|
|
111
110
|
url: toPathString(localVarUrlObj),
|
|
112
111
|
options: localVarRequestOptions,
|
|
113
112
|
};
|
|
114
|
-
}
|
|
113
|
+
},
|
|
115
114
|
};
|
|
116
115
|
};
|
|
117
116
|
/**
|
|
@@ -128,11 +127,12 @@ const ApiKeyApiFp = function (configuration) {
|
|
|
128
127
|
* @param {*} [options] Override http request option.
|
|
129
128
|
* @throws {RequiredError}
|
|
130
129
|
*/
|
|
131
|
-
createKey(app, options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
async createKey(app, options) {
|
|
131
|
+
var _a, _b, _c;
|
|
132
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(app, options);
|
|
133
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
134
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeyApi.createKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
135
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
136
136
|
},
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
@@ -140,11 +140,12 @@ const ApiKeyApiFp = function (configuration) {
|
|
|
140
140
|
* @param {*} [options] Override http request option.
|
|
141
141
|
* @throws {RequiredError}
|
|
142
142
|
*/
|
|
143
|
-
getKeys(options) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
async getKeys(options) {
|
|
144
|
+
var _a, _b, _c;
|
|
145
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
|
|
146
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
147
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeyApi.getKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
148
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
148
149
|
},
|
|
149
150
|
/**
|
|
150
151
|
*
|
|
@@ -153,11 +154,12 @@ const ApiKeyApiFp = function (configuration) {
|
|
|
153
154
|
* @param {*} [options] Override http request option.
|
|
154
155
|
* @throws {RequiredError}
|
|
155
156
|
*/
|
|
156
|
-
revokeKey(key, options) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
async revokeKey(key, options) {
|
|
158
|
+
var _a, _b, _c;
|
|
159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revokeKey(key, options);
|
|
160
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
161
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeyApi.revokeKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
162
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
161
163
|
},
|
|
162
164
|
};
|
|
163
165
|
};
|
|
@@ -171,12 +173,12 @@ const ApiKeyApiFactory = function (configuration, basePath, axios) {
|
|
|
171
173
|
/**
|
|
172
174
|
*
|
|
173
175
|
* @summary Create a new api key.
|
|
174
|
-
* @param {
|
|
176
|
+
* @param {ApiKeyApiCreateKeyRequest} requestParameters Request parameters.
|
|
175
177
|
* @param {*} [options] Override http request option.
|
|
176
178
|
* @throws {RequiredError}
|
|
177
179
|
*/
|
|
178
|
-
createKey(
|
|
179
|
-
return localVarFp.createKey(app, options).then((request) => request(axios, basePath));
|
|
180
|
+
createKey(requestParameters, options) {
|
|
181
|
+
return localVarFp.createKey(requestParameters.app, options).then((request) => request(axios, basePath));
|
|
180
182
|
},
|
|
181
183
|
/**
|
|
182
184
|
*
|
|
@@ -190,12 +192,12 @@ const ApiKeyApiFactory = function (configuration, basePath, axios) {
|
|
|
190
192
|
/**
|
|
191
193
|
*
|
|
192
194
|
* @summary Remove an api key.
|
|
193
|
-
* @param {
|
|
195
|
+
* @param {ApiKeyApiRevokeKeyRequest} requestParameters Request parameters.
|
|
194
196
|
* @param {*} [options] Override http request option.
|
|
195
197
|
* @throws {RequiredError}
|
|
196
198
|
*/
|
|
197
|
-
revokeKey(
|
|
198
|
-
return localVarFp.revokeKey(key, options).then((request) => request(axios, basePath));
|
|
199
|
+
revokeKey(requestParameters, options) {
|
|
200
|
+
return localVarFp.revokeKey(requestParameters.key, options).then((request) => request(axios, basePath));
|
|
199
201
|
},
|
|
200
202
|
};
|
|
201
203
|
};
|