@jellyfin/sdk 0.10.0 → 0.12.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/CHANGELOG.md +127 -0
- package/README.md +3 -41
- package/lib/api.d.ts +7 -11
- package/lib/api.js +13 -14
- package/lib/generated-client/api/activity-log-api.d.ts +9 -12
- package/lib/generated-client/api/activity-log-api.js +8 -8
- package/lib/generated-client/api/api-key-api.d.ts +18 -18
- package/lib/generated-client/api/api-key-api.js +19 -10
- package/lib/generated-client/api/artists-api.d.ts +27 -90
- package/lib/generated-client/api/artists-api.js +22 -76
- package/lib/generated-client/api/audio-api.d.ts +87 -255
- package/lib/generated-client/api/audio-api.js +97 -249
- package/lib/generated-client/api/backup-api.d.ts +209 -0
- package/lib/generated-client/api/backup-api.js +311 -0
- package/lib/generated-client/api/branding-api.d.ts +16 -16
- package/lib/generated-client/api/branding-api.js +13 -4
- package/lib/generated-client/api/channels-api.d.ts +33 -51
- package/lib/generated-client/api/channels-api.js +33 -36
- package/lib/generated-client/api/client-log-api.d.ts +13 -13
- package/lib/generated-client/api/client-log-api.js +10 -7
- package/lib/generated-client/api/collection-api.d.ts +19 -24
- package/lib/generated-client/api/collection-api.js +22 -18
- package/lib/generated-client/api/configuration-api.d.ts +75 -29
- package/lib/generated-client/api/configuration-api.js +98 -17
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +16 -10
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +37 -23
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +16 -15
- package/lib/generated-client/api/dlna-api.d.ts +6 -6
- package/lib/generated-client/api/dlna-server-api.d.ts +16 -16
- package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
- package/lib/generated-client/api/dynamic-hls-api.js +233 -573
- package/lib/generated-client/api/environment-api.d.ts +33 -35
- package/lib/generated-client/api/environment-api.js +35 -19
- package/lib/generated-client/api/filter-api.d.ts +17 -29
- package/lib/generated-client/api/filter-api.js +15 -21
- package/lib/generated-client/api/genres-api.d.ts +20 -38
- package/lib/generated-client/api/genres-api.js +16 -28
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +37 -29
- package/lib/generated-client/api/image-api.d.ts +216 -942
- package/lib/generated-client/api/image-api.js +282 -789
- package/lib/generated-client/api/image-by-name-api.d.ts +6 -6
- package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
- package/lib/generated-client/api/instant-mix-api.js +57 -89
- package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
- package/lib/generated-client/api/item-lookup-api.js +78 -47
- package/lib/generated-client/api/item-refresh-api.d.ts +17 -13
- package/lib/generated-client/api/item-refresh-api.js +17 -13
- package/lib/generated-client/api/item-update-api.d.ts +20 -22
- package/lib/generated-client/api/item-update-api.js +22 -15
- package/lib/generated-client/api/items-api.d.ts +44 -137
- package/lib/generated-client/api/items-api.js +39 -123
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +213 -143
- package/lib/generated-client/api/library-structure-api.d.ts +48 -58
- package/lib/generated-client/api/library-structure-api.js +54 -40
- package/lib/generated-client/api/live-tv-api.d.ts +236 -336
- package/lib/generated-client/api/live-tv-api.js +287 -267
- package/lib/generated-client/api/localization-api.d.ts +23 -23
- package/lib/generated-client/api/localization-api.js +17 -5
- package/lib/generated-client/api/lyrics-api.d.ts +39 -42
- package/lib/generated-client/api/lyrics-api.js +46 -31
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +46 -53
- 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 +8 -9
- package/lib/generated-client/api/music-genres-api.d.ts +20 -38
- package/lib/generated-client/api/music-genres-api.js +16 -28
- package/lib/generated-client/api/notifications-api.d.ts +7 -7
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +38 -24
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +16 -23
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +138 -64
- package/lib/generated-client/api/playstate-api.d.ts +66 -80
- package/lib/generated-client/api/playstate-api.js +77 -64
- package/lib/generated-client/api/plugins-api.d.ts +48 -52
- package/lib/generated-client/api/plugins-api.js +61 -38
- package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
- package/lib/generated-client/api/quick-connect-api.js +24 -13
- package/lib/generated-client/api/remote-image-api.d.ts +21 -28
- package/lib/generated-client/api/remote-image-api.js +22 -20
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
- package/lib/generated-client/api/scheduled-tasks-api.js +37 -24
- package/lib/generated-client/api/search-api.d.ts +11 -28
- package/lib/generated-client/api/search-api.js +8 -22
- package/lib/generated-client/api/session-api.d.ts +90 -117
- package/lib/generated-client/api/session-api.js +104 -83
- package/lib/generated-client/api/startup-api.d.ts +37 -37
- package/lib/generated-client/api/startup-api.js +39 -18
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +16 -27
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +69 -70
- package/lib/generated-client/api/suggestions-api.d.ts +11 -16
- package/lib/generated-client/api/suggestions-api.js +8 -10
- package/lib/generated-client/api/sync-play-api.d.ts +166 -120
- package/lib/generated-client/api/sync-play-api.js +200 -71
- package/lib/generated-client/api/system-api.d.ts +53 -57
- package/lib/generated-client/api/system-api.js +56 -30
- package/lib/generated-client/api/time-sync-api.d.ts +8 -8
- package/lib/generated-client/api/time-sync-api.js +5 -2
- package/lib/generated-client/api/tmdb-api.d.ts +8 -8
- package/lib/generated-client/api/tmdb-api.js +5 -2
- package/lib/generated-client/api/trailers-api.d.ts +19 -102
- package/lib/generated-client/api/trailers-api.js +8 -88
- package/lib/generated-client/api/trickplay-api.d.ts +13 -18
- package/lib/generated-client/api/trickplay-api.js +15 -14
- package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
- package/lib/generated-client/api/tv-shows-api.js +30 -63
- package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
- package/lib/generated-client/api/universal-audio-api.js +33 -51
- package/lib/generated-client/api/user-api.d.ts +83 -88
- package/lib/generated-client/api/user-api.js +94 -57
- package/lib/generated-client/api/user-library-api.d.ts +59 -78
- package/lib/generated-client/api/user-library-api.js +71 -60
- package/lib/generated-client/api/user-views-api.d.ts +16 -19
- package/lib/generated-client/api/user-views-api.js +15 -12
- package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
- package/lib/generated-client/api/video-attachments-api.js +8 -7
- package/lib/generated-client/api/videos-api.d.ts +97 -274
- package/lib/generated-client/api/videos-api.js +114 -266
- package/lib/generated-client/api/years-api.d.ts +21 -36
- package/lib/generated-client/api/years-api.js +16 -25
- package/lib/generated-client/api.d.ts +2 -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 +4 -4
- package/lib/generated-client/common.js +23 -14
- package/lib/generated-client/configuration.d.ts +8 -0
- package/lib/generated-client/configuration.js +1 -0
- package/lib/generated-client/index.js +11 -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/backup-manifest-dto.d.ts +48 -0
- package/lib/generated-client/models/backup-options-dto.d.ts +41 -0
- package/lib/generated-client/models/backup-restore-request-dto.d.ts +23 -0
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +28 -28
- 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/branding-options-dto.d.ts +35 -0
- 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/custom-database-option.d.ts +29 -0
- package/lib/generated-client/models/custom-database-options.d.ts +42 -0
- package/lib/generated-client/models/database-configuration-options.d.ts +37 -0
- package/lib/generated-client/models/database-locking-behavior-types.d.ts +21 -0
- package/lib/generated-client/models/database-locking-behavior-types.js +24 -0
- 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 +1 -7
- package/lib/generated-client/models/external-id-media-type.d.ts +1 -0
- package/lib/generated-client/models/external-id-media-type.js +2 -1
- package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
- package/lib/generated-client/models/folder-storage-dto.d.ts +47 -0
- 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-type.d.ts +0 -2
- package/lib/generated-client/models/group-update-type.js +0 -2
- package/lib/generated-client/models/group-update.d.ts +29 -6
- 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 +38 -14
- package/lib/generated-client/models/index.js +9 -1
- package/lib/generated-client/models/installation-info.d.ts +1 -1
- package/lib/generated-client/models/item-fields.d.ts +0 -11
- package/lib/generated-client/models/item-fields.js +0 -11
- package/lib/generated-client/models/item-sort-by.d.ts +0 -2
- package/lib/generated-client/models/item-sort-by.js +1 -3
- package/lib/generated-client/models/library-changed-message.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +14 -2
- package/lib/generated-client/models/library-options.d.ts +57 -3
- package/lib/generated-client/models/library-storage-dto.d.ts +36 -0
- 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/lyric-line-cue.d.ts +41 -0
- package/lib/generated-client/models/lyric-line.d.ts +7 -0
- 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 +23 -5
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +12 -12
- 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/network-configuration.d.ts +1 -0
- package/lib/generated-client/models/open-live-stream-dto.d.ts +9 -3
- 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/parental-rating-score.d.ts +29 -0
- package/lib/generated-client/models/parental-rating.d.ts +8 -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 +8 -2
- 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-status.d.ts +1 -0
- package/lib/generated-client/models/plugin-status.js +1 -0
- 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-value.d.ts +1 -0
- package/lib/generated-client/models/profile-condition-value.js +2 -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 +2 -2
- 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 +29 -23
- 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/startup-configuration-dto.d.ts +6 -0
- package/lib/generated-client/models/startup-remote-access-dto.d.ts +1 -0
- 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-does-not-exist-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-group-joined-update.d.ts +37 -0
- package/lib/generated-client/models/sync-play-group-left-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
- package/lib/generated-client/models/sync-play-group-update-message.d.ts +37 -0
- package/lib/generated-client/models/sync-play-library-access-denied-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-not-in-group-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-play-queue-update.d.ts +37 -0
- package/lib/generated-client/models/sync-play-state-update.d.ts +37 -0
- package/lib/generated-client/models/sync-play-user-joined-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-user-left-update.d.ts +36 -0
- package/lib/generated-client/models/system-info.d.ts +9 -2
- package/lib/generated-client/models/system-storage-dto.d.ts +67 -0
- 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-type.d.ts +22 -0
- package/lib/generated-client/models/task-trigger-info-type.js +25 -0
- package/lib/generated-client/models/task-trigger-info.d.ts +5 -4
- 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 +2 -0
- package/lib/generated-client/models/transcode-reason.js +3 -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-info-dto.d.ts +59 -0
- package/lib/generated-client/models/trickplay-info.d.ts +7 -1
- package/lib/generated-client/models/trickplay-options.d.ts +8 -2
- package/lib/generated-client/models/tuner-host-info.d.ts +24 -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 +9 -3
- package/lib/generated-client/models/user-updated-message.d.ts +2 -2
- package/lib/generated-client/models/video-range-type.d.ts +4 -0
- package/lib/generated-client/models/video-range-type.js +4 -0
- 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/models/api/image-request-parameters.d.ts +0 -1
- package/lib/models/api/index.d.ts +0 -1
- package/lib/models/api/index.js +1 -1
- package/lib/utils/address-candidates.js +15 -10
- 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 +2 -2
- package/lib/versions.js +2 -2
- package/package.json +20 -18
- package/lib/models/api/item-sort-by.d.ts +0 -40
- package/lib/models/api/item-sort-by.js +0 -43
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
<!-- markdownlint-disable MD024 -->
|
|
2
|
+
# Changelog
|
|
3
|
+
|
|
4
|
+
All notable changes to this project will be documented in this file.
|
|
5
|
+
|
|
6
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.12.0] - 2025-10-21
|
|
11
|
+
|
|
12
|
+
### Security
|
|
13
|
+
|
|
14
|
+
* Bumped axios peer dependency version ([#939](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/939)). Note that this axios vulnerability only affected applications running in node.js.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
* `getUri` utility method ([#867](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/867)).
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
* Updated minimum Jellyfin version to 10.10.0 ([#942](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/942)).
|
|
23
|
+
* Updated OpenAPI spec for Jellyfin 10.11.0 ([#931](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/931)).
|
|
24
|
+
|
|
25
|
+
### Removed
|
|
26
|
+
|
|
27
|
+
* Duplicate `ItemSortBy` enum ([#842](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/842)).
|
|
28
|
+
* `addPlayedIndicator` from `ImageRequestParameters` ([#841](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/841)).
|
|
29
|
+
|
|
30
|
+
## [0.11.0] - 2024-10-28
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
* Updated OpenAPI spec for Jellyfin 10.10.0 ([#816](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/816)).
|
|
35
|
+
|
|
36
|
+
### Removed
|
|
37
|
+
|
|
38
|
+
* Deprecated image url function ([#731](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/731)).
|
|
39
|
+
|
|
40
|
+
## [0.10.0] - 2024-06-03
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
* Update build target to ES2018 ([#712](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/712)).
|
|
45
|
+
|
|
46
|
+
## [0.9.0] - 2024-05-14
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
* Update OpenAPI spec for Jellyfin 10.9.1 ([#694](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/694)).
|
|
51
|
+
|
|
52
|
+
## [0.8.2] - 2023-04-12
|
|
53
|
+
|
|
54
|
+
## [0.8.1] - 2023-03-31
|
|
55
|
+
|
|
56
|
+
## [0.8.0] - 2023-03-30
|
|
57
|
+
|
|
58
|
+
### Changed
|
|
59
|
+
|
|
60
|
+
* Fully target ES6/ES2015 ([#341](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/341)).
|
|
61
|
+
* Axios major version upgrade ([#300](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/300)).
|
|
62
|
+
|
|
63
|
+
## [0.7.0] - 2023-09-16
|
|
64
|
+
|
|
65
|
+
### Changed
|
|
66
|
+
|
|
67
|
+
* Rename package to @jellyfin/sdk ([#262](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/262)).
|
|
68
|
+
|
|
69
|
+
## [0.6.0] - 2022-07-14
|
|
70
|
+
|
|
71
|
+
### Changed
|
|
72
|
+
|
|
73
|
+
* Update OpenAPI spec for Jellyfin 10.8.1 ([#208](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/208)).
|
|
74
|
+
|
|
75
|
+
## [0.5.0] - 2022-06-17
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
|
|
79
|
+
* Build directory is now `lib` instead of `dist`.
|
|
80
|
+
Any imports used that were previously in `dist` will need updated ([#147](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/147)).
|
|
81
|
+
* API classes are no longer exposed via getters.
|
|
82
|
+
Instead you need to call a function passing the `Api` instance as a parameter.
|
|
83
|
+
For example: `getSystemApi(api)`.
|
|
84
|
+
While I do feel this is a slightly worse developer experience, it was a necessary change to support tree-shaking ([#149](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/149)).
|
|
85
|
+
* `BaseItemKind` is now included in the generated client.
|
|
86
|
+
Imports will need updated ([#187](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/187)).
|
|
87
|
+
|
|
88
|
+
### Removed
|
|
89
|
+
|
|
90
|
+
* Duplicated exports were removed.
|
|
91
|
+
Any imports may need updated if you referenced one of the duplicates ([#148](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/148)).
|
|
92
|
+
|
|
93
|
+
## [0.4.1] - 2022-02-17
|
|
94
|
+
|
|
95
|
+
## [0.4.0] - 2022-02-17
|
|
96
|
+
|
|
97
|
+
## [0.3.1] - 2022-02-03
|
|
98
|
+
|
|
99
|
+
## [0.3.0] - 2021-10-18
|
|
100
|
+
|
|
101
|
+
## [0.2.0] - 2021-10-08
|
|
102
|
+
|
|
103
|
+
## [0.1.2] - 2021-09-19
|
|
104
|
+
|
|
105
|
+
## [0.1.1] - 2021-09-19
|
|
106
|
+
|
|
107
|
+
## [0.1.0] - 2021-09-19
|
|
108
|
+
|
|
109
|
+
[unreleased]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.12.0...HEAD
|
|
110
|
+
[0.12.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.11.0...v0.12.0
|
|
111
|
+
[0.11.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.10.0...v0.11.0
|
|
112
|
+
[0.10.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.9.0...v0.10.0
|
|
113
|
+
[0.9.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.8.2...v0.9.0
|
|
114
|
+
[0.8.2]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.8.1...v0.8.2
|
|
115
|
+
[0.8.1]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.8.0...v0.8.1
|
|
116
|
+
[0.8.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.7.0...v0.8.0
|
|
117
|
+
[0.7.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.6.0...v0.7.0
|
|
118
|
+
[0.6.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.5.0...v0.6.0
|
|
119
|
+
[0.5.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.4.1...v0.5.0
|
|
120
|
+
[0.4.1]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.4.0...v0.4.1
|
|
121
|
+
[0.4.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.3.1...v0.4.0
|
|
122
|
+
[0.3.1]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.3.0...v0.3.1
|
|
123
|
+
[0.3.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.2.0...v0.3.0
|
|
124
|
+
[0.2.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.1.2...v0.2.0
|
|
125
|
+
[0.1.2]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.1.1...v0.1.2
|
|
126
|
+
[0.1.1]: https://github.com/jellyfin/jellyfin-sdk-typescript/compare/v0.1.0...v0.1.1
|
|
127
|
+
[0.1.0]: https://github.com/jellyfin/jellyfin-sdk-typescript/releases/tag/v0.1.0
|
package/README.md
CHANGED
|
@@ -35,6 +35,8 @@ yarn add @jellyfin/sdk
|
|
|
35
35
|
|
|
36
36
|
| SDK Version | Jellyfin Version |
|
|
37
37
|
|:-:|:-:|
|
|
38
|
+
| 0.12.0 | 10.11.x |
|
|
39
|
+
| 0.11.0 | 10.10.x |
|
|
38
40
|
| 0.10.0 | 10.9.x |
|
|
39
41
|
| 0.9.0 | 10.9.x |
|
|
40
42
|
| 0.8.2 - 0.6.0 | 10.8.1 - 10.8.13 |
|
|
@@ -108,47 +110,7 @@ await api.logout();
|
|
|
108
110
|
|
|
109
111
|
## Breaking Changes
|
|
110
112
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
* Updated build target to ES2018. [#712](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/712)
|
|
114
|
-
|
|
115
|
-
### v0.9.0
|
|
116
|
-
|
|
117
|
-
* Updated OpenAPI spec for Jellyfin 10.9.1. [#694](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/694)
|
|
118
|
-
|
|
119
|
-
### v0.8.0
|
|
120
|
-
|
|
121
|
-
* The library is now fully targeted to ES6/ES2015.
|
|
122
|
-
[#341](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/341)
|
|
123
|
-
* Axios received a major version upgrade.
|
|
124
|
-
[#300](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/300)
|
|
125
|
-
|
|
126
|
-
### v0.7.0
|
|
127
|
-
|
|
128
|
-
* Renamed package to @jellyfin/sdk.
|
|
129
|
-
[#262](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/262)
|
|
130
|
-
|
|
131
|
-
### v0.6.0
|
|
132
|
-
|
|
133
|
-
* Updated OpenAPI spec for Jellyfin 10.8.1.
|
|
134
|
-
[#208](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/208)
|
|
135
|
-
|
|
136
|
-
### v0.5.0
|
|
137
|
-
|
|
138
|
-
* Build directory is now `lib` instead of `dist`.
|
|
139
|
-
Any imports used that were previously in `dist` will need updated.
|
|
140
|
-
[#147](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/147)
|
|
141
|
-
* Duplicated exports were removed.
|
|
142
|
-
Any imports may need updated if you referenced one of the duplicates.
|
|
143
|
-
[#148](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/148)
|
|
144
|
-
* API classes are no longer exposed via getters.
|
|
145
|
-
Instead you need to call a function passing the `Api` instance as a parameter.
|
|
146
|
-
For example: `getSystemApi(api)`.
|
|
147
|
-
While I do feel this is a slightly worse developer experience, it was a necessary change to support tree-shaking.
|
|
148
|
-
[#149](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/149)
|
|
149
|
-
* `BaseItemKind` is now included in the generated client.
|
|
150
|
-
Imports will need updated.
|
|
151
|
-
[#187](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/187)
|
|
113
|
+
[See the CHANGELOG](./CHANGELOG.md)
|
|
152
114
|
|
|
153
115
|
## Roadmap to 1.0
|
|
154
116
|
|
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. */
|
|
@@ -27,17 +25,15 @@ export declare class Api {
|
|
|
27
25
|
*/
|
|
28
26
|
authenticateUserByName(username: string, password?: string): Promise<AxiosResponse<AuthenticationResult>>;
|
|
29
27
|
/**
|
|
30
|
-
*
|
|
28
|
+
* Gets a full URI for a relative URL to the Jellyfin server for a given SDK Api instance.
|
|
29
|
+
* @param url The relative URL.
|
|
30
|
+
* @param params Any URL parameters.
|
|
31
|
+
* @returns The complete URI with protocol, host, and base URL (if any).
|
|
31
32
|
*/
|
|
32
|
-
|
|
33
|
+
getUri(url: string, params?: object): string;
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
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.
|
|
35
|
+
* Convenience method for logging out and updating the internal state.
|
|
40
36
|
*/
|
|
41
|
-
|
|
37
|
+
logout(): Promise<AxiosResponse<never> | AxiosResponse<void>>;
|
|
42
38
|
get authorizationHeader(): string;
|
|
43
39
|
}
|
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
|
|
|
@@ -40,6 +38,19 @@ class Api {
|
|
|
40
38
|
return response;
|
|
41
39
|
});
|
|
42
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Gets a full URI for a relative URL to the Jellyfin server for a given SDK Api instance.
|
|
43
|
+
* @param url The relative URL.
|
|
44
|
+
* @param params Any URL parameters.
|
|
45
|
+
* @returns The complete URI with protocol, host, and base URL (if any).
|
|
46
|
+
*/
|
|
47
|
+
getUri(url, params) {
|
|
48
|
+
return this.axiosInstance.getUri({
|
|
49
|
+
baseURL: this.basePath,
|
|
50
|
+
url,
|
|
51
|
+
params
|
|
52
|
+
});
|
|
53
|
+
}
|
|
43
54
|
/**
|
|
44
55
|
* Convenience method for logging out and updating the internal state.
|
|
45
56
|
*/
|
|
@@ -49,18 +60,6 @@ class Api {
|
|
|
49
60
|
return response;
|
|
50
61
|
});
|
|
51
62
|
}
|
|
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
63
|
get authorizationHeader() {
|
|
65
64
|
return getAuthorizationHeader(this.clientInfo, this.deviceInfo, this.accessToken);
|
|
66
65
|
}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
2
|
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
3
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
4
|
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
@@ -85,8 +85,11 @@ const ActivityLogApiFp = function (configuration) {
|
|
|
85
85
|
* @throws {RequiredError}
|
|
86
86
|
*/
|
|
87
87
|
async getLogEntries(startIndex, limit, minDate, hasUserId, options) {
|
|
88
|
+
var _a, _b, _c;
|
|
88
89
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getLogEntries(startIndex, limit, minDate, hasUserId, options);
|
|
89
|
-
|
|
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);
|
|
90
93
|
},
|
|
91
94
|
};
|
|
92
95
|
};
|
|
@@ -100,15 +103,12 @@ const ActivityLogApiFactory = function (configuration, basePath, axios) {
|
|
|
100
103
|
/**
|
|
101
104
|
*
|
|
102
105
|
* @summary Gets activity log entries.
|
|
103
|
-
* @param {
|
|
104
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
105
|
-
* @param {string} [minDate] Optional. The minimum date. Format = ISO.
|
|
106
|
-
* @param {boolean} [hasUserId] Optional. Filter log entries if it has user id, or not.
|
|
106
|
+
* @param {ActivityLogApiGetLogEntriesRequest} requestParameters Request parameters.
|
|
107
107
|
* @param {*} [options] Override http request option.
|
|
108
108
|
* @throws {RequiredError}
|
|
109
109
|
*/
|
|
110
|
-
getLogEntries(
|
|
111
|
-
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));
|
|
112
112
|
},
|
|
113
113
|
};
|
|
114
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,6 +1,6 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
3
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
4
|
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
@@ -128,8 +128,11 @@ const ApiKeyApiFp = function (configuration) {
|
|
|
128
128
|
* @throws {RequiredError}
|
|
129
129
|
*/
|
|
130
130
|
async createKey(app, options) {
|
|
131
|
+
var _a, _b, _c;
|
|
131
132
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(app, options);
|
|
132
|
-
|
|
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);
|
|
133
136
|
},
|
|
134
137
|
/**
|
|
135
138
|
*
|
|
@@ -138,8 +141,11 @@ const ApiKeyApiFp = function (configuration) {
|
|
|
138
141
|
* @throws {RequiredError}
|
|
139
142
|
*/
|
|
140
143
|
async getKeys(options) {
|
|
144
|
+
var _a, _b, _c;
|
|
141
145
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
|
|
142
|
-
|
|
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);
|
|
143
149
|
},
|
|
144
150
|
/**
|
|
145
151
|
*
|
|
@@ -149,8 +155,11 @@ const ApiKeyApiFp = function (configuration) {
|
|
|
149
155
|
* @throws {RequiredError}
|
|
150
156
|
*/
|
|
151
157
|
async revokeKey(key, options) {
|
|
158
|
+
var _a, _b, _c;
|
|
152
159
|
const localVarAxiosArgs = await localVarAxiosParamCreator.revokeKey(key, options);
|
|
153
|
-
|
|
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);
|
|
154
163
|
},
|
|
155
164
|
};
|
|
156
165
|
};
|
|
@@ -164,12 +173,12 @@ const ApiKeyApiFactory = function (configuration, basePath, axios) {
|
|
|
164
173
|
/**
|
|
165
174
|
*
|
|
166
175
|
* @summary Create a new api key.
|
|
167
|
-
* @param {
|
|
176
|
+
* @param {ApiKeyApiCreateKeyRequest} requestParameters Request parameters.
|
|
168
177
|
* @param {*} [options] Override http request option.
|
|
169
178
|
* @throws {RequiredError}
|
|
170
179
|
*/
|
|
171
|
-
createKey(
|
|
172
|
-
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));
|
|
173
182
|
},
|
|
174
183
|
/**
|
|
175
184
|
*
|
|
@@ -183,12 +192,12 @@ const ApiKeyApiFactory = function (configuration, basePath, axios) {
|
|
|
183
192
|
/**
|
|
184
193
|
*
|
|
185
194
|
* @summary Remove an api key.
|
|
186
|
-
* @param {
|
|
195
|
+
* @param {ApiKeyApiRevokeKeyRequest} requestParameters Request parameters.
|
|
187
196
|
* @param {*} [options] Override http request option.
|
|
188
197
|
* @throws {RequiredError}
|
|
189
198
|
*/
|
|
190
|
-
revokeKey(
|
|
191
|
-
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));
|
|
192
201
|
},
|
|
193
202
|
};
|
|
194
203
|
};
|