@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
|
@@ -8,17 +8,17 @@
|
|
|
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 { BaseItemDto } from '../models';
|
|
15
|
-
import { BaseItemDtoQueryResult } from '../models';
|
|
16
|
-
import { BaseItemKind } from '../models';
|
|
17
|
-
import { ImageType } from '../models';
|
|
18
|
-
import { ItemFields } from '../models';
|
|
19
|
-
import { ItemSortBy } from '../models';
|
|
20
|
-
import { MediaType } from '../models';
|
|
21
|
-
import { SortOrder } 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 { BaseItemDto } from '../models';
|
|
15
|
+
import type { BaseItemDtoQueryResult } from '../models';
|
|
16
|
+
import type { BaseItemKind } from '../models';
|
|
17
|
+
import type { ImageType } from '../models';
|
|
18
|
+
import type { ItemFields } from '../models';
|
|
19
|
+
import type { ItemSortBy } from '../models';
|
|
20
|
+
import type { MediaType } from '../models';
|
|
21
|
+
import type { SortOrder } from '../models';
|
|
22
22
|
/**
|
|
23
23
|
* YearsApi - axios parameter creator
|
|
24
24
|
* @export
|
|
@@ -32,7 +32,7 @@ export declare const YearsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
32
32
|
* @param {*} [options] Override http request option.
|
|
33
33
|
* @throws {RequiredError}
|
|
34
34
|
*/
|
|
35
|
-
getYear: (year: number, userId?: string, options?:
|
|
35
|
+
getYear: (year: number, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @summary Get years.
|
|
@@ -54,7 +54,7 @@ export declare const YearsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
*/
|
|
57
|
-
getYears: (startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?:
|
|
57
|
+
getYears: (startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
60
60
|
* YearsApi - functional programming interface
|
|
@@ -69,7 +69,7 @@ export declare const YearsApiFp: (configuration?: Configuration) => {
|
|
|
69
69
|
* @param {*} [options] Override http request option.
|
|
70
70
|
* @throws {RequiredError}
|
|
71
71
|
*/
|
|
72
|
-
getYear(year: number, userId?: string, options?:
|
|
72
|
+
getYear(year: number, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDto>>;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @summary Get years.
|
|
@@ -91,7 +91,7 @@ export declare const YearsApiFp: (configuration?: Configuration) => {
|
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
*/
|
|
94
|
-
getYears(startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?:
|
|
94
|
+
getYears(startIndex?: number, limit?: number, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, mediaTypes?: Array<MediaType>, sortBy?: Array<ItemSortBy>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, userId?: string, recursive?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>;
|
|
95
95
|
};
|
|
96
96
|
/**
|
|
97
97
|
* YearsApi - factory interface
|
|
@@ -101,34 +101,19 @@ export declare const YearsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @summary Gets a year.
|
|
104
|
-
* @param {
|
|
105
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
104
|
+
* @param {YearsApiGetYearRequest} requestParameters Request parameters.
|
|
106
105
|
* @param {*} [options] Override http request option.
|
|
107
106
|
* @throws {RequiredError}
|
|
108
107
|
*/
|
|
109
|
-
getYear(
|
|
108
|
+
getYear(requestParameters: YearsApiGetYearRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDto>;
|
|
110
109
|
/**
|
|
111
110
|
*
|
|
112
111
|
* @summary Get years.
|
|
113
|
-
* @param {
|
|
114
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
115
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
116
|
-
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
117
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
118
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited.
|
|
119
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be included based on item type. This allows multiple, comma delimited.
|
|
120
|
-
* @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
|
|
121
|
-
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
122
|
-
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
123
|
-
* @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
|
|
124
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
125
|
-
* @param {string} [userId] User Id.
|
|
126
|
-
* @param {boolean} [recursive] Search recursively.
|
|
127
|
-
* @param {boolean} [enableImages] Optional. Include image information in output.
|
|
112
|
+
* @param {YearsApiGetYearsRequest} requestParameters Request parameters.
|
|
128
113
|
* @param {*} [options] Override http request option.
|
|
129
114
|
* @throws {RequiredError}
|
|
130
115
|
*/
|
|
131
|
-
getYears(
|
|
116
|
+
getYears(requestParameters?: YearsApiGetYearsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDtoQueryResult>;
|
|
132
117
|
};
|
|
133
118
|
/**
|
|
134
119
|
* Request parameters for getYear operation in YearsApi.
|
|
@@ -261,7 +246,7 @@ export declare class YearsApi extends BaseAPI {
|
|
|
261
246
|
* @throws {RequiredError}
|
|
262
247
|
* @memberof YearsApi
|
|
263
248
|
*/
|
|
264
|
-
getYear(requestParameters: YearsApiGetYearRequest, options?:
|
|
249
|
+
getYear(requestParameters: YearsApiGetYearRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDto, any, {}>>;
|
|
265
250
|
/**
|
|
266
251
|
*
|
|
267
252
|
* @summary Get years.
|
|
@@ -270,5 +255,5 @@ export declare class YearsApi extends BaseAPI {
|
|
|
270
255
|
* @throws {RequiredError}
|
|
271
256
|
* @memberof YearsApi
|
|
272
257
|
*/
|
|
273
|
-
getYears(requestParameters?: YearsApiGetYearsRequest, options?:
|
|
258
|
+
getYears(requestParameters?: YearsApiGetYearsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any, {}>>;
|
|
274
259
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
|
-
import {
|
|
3
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
2
|
+
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, assertParamExists, createRequestFunction } from '../common.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
4
4
|
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
@@ -160,8 +160,11 @@ const YearsApiFp = function (configuration) {
|
|
|
160
160
|
* @throws {RequiredError}
|
|
161
161
|
*/
|
|
162
162
|
async getYear(year, userId, options) {
|
|
163
|
+
var _a, _b, _c;
|
|
163
164
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getYear(year, userId, options);
|
|
164
|
-
|
|
165
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
166
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['YearsApi.getYear']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
167
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
165
168
|
},
|
|
166
169
|
/**
|
|
167
170
|
*
|
|
@@ -185,8 +188,11 @@ const YearsApiFp = function (configuration) {
|
|
|
185
188
|
* @throws {RequiredError}
|
|
186
189
|
*/
|
|
187
190
|
async getYears(startIndex, limit, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, mediaTypes, sortBy, enableUserData, imageTypeLimit, enableImageTypes, userId, recursive, enableImages, options) {
|
|
191
|
+
var _a, _b, _c;
|
|
188
192
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getYears(startIndex, limit, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, mediaTypes, sortBy, enableUserData, imageTypeLimit, enableImageTypes, userId, recursive, enableImages, options);
|
|
189
|
-
|
|
193
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
194
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['YearsApi.getYears']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
195
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
190
196
|
},
|
|
191
197
|
};
|
|
192
198
|
};
|
|
@@ -200,37 +206,22 @@ const YearsApiFactory = function (configuration, basePath, axios) {
|
|
|
200
206
|
/**
|
|
201
207
|
*
|
|
202
208
|
* @summary Gets a year.
|
|
203
|
-
* @param {
|
|
204
|
-
* @param {string} [userId] Optional. Filter by user id, and attach user data.
|
|
209
|
+
* @param {YearsApiGetYearRequest} requestParameters Request parameters.
|
|
205
210
|
* @param {*} [options] Override http request option.
|
|
206
211
|
* @throws {RequiredError}
|
|
207
212
|
*/
|
|
208
|
-
getYear(
|
|
209
|
-
return localVarFp.getYear(year, userId, options).then((request) => request(axios, basePath));
|
|
213
|
+
getYear(requestParameters, options) {
|
|
214
|
+
return localVarFp.getYear(requestParameters.year, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
210
215
|
},
|
|
211
216
|
/**
|
|
212
217
|
*
|
|
213
218
|
* @summary Get years.
|
|
214
|
-
* @param {
|
|
215
|
-
* @param {number} [limit] Optional. The maximum number of records to return.
|
|
216
|
-
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending,Descending.
|
|
217
|
-
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
218
|
-
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
219
|
-
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be excluded based on item type. This allows multiple, comma delimited.
|
|
220
|
-
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be included based on item type. This allows multiple, comma delimited.
|
|
221
|
-
* @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
|
|
222
|
-
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
223
|
-
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
224
|
-
* @param {number} [imageTypeLimit] Optional. The max number of images to return, per image type.
|
|
225
|
-
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
226
|
-
* @param {string} [userId] User Id.
|
|
227
|
-
* @param {boolean} [recursive] Search recursively.
|
|
228
|
-
* @param {boolean} [enableImages] Optional. Include image information in output.
|
|
219
|
+
* @param {YearsApiGetYearsRequest} requestParameters Request parameters.
|
|
229
220
|
* @param {*} [options] Override http request option.
|
|
230
221
|
* @throws {RequiredError}
|
|
231
222
|
*/
|
|
232
|
-
getYears(
|
|
233
|
-
return localVarFp.getYears(startIndex, limit, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, mediaTypes, sortBy, enableUserData, imageTypeLimit, enableImageTypes, userId, recursive, enableImages, options).then((request) => request(axios, basePath));
|
|
223
|
+
getYears(requestParameters = {}, options) {
|
|
224
|
+
return localVarFp.getYears(requestParameters.startIndex, requestParameters.limit, requestParameters.sortOrder, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.mediaTypes, requestParameters.sortBy, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.userId, requestParameters.recursive, requestParameters.enableImages, options).then((request) => request(axios, basePath));
|
|
234
225
|
},
|
|
235
226
|
};
|
|
236
227
|
};
|
|
@@ -12,6 +12,7 @@ export * from './api/activity-log-api';
|
|
|
12
12
|
export * from './api/api-key-api';
|
|
13
13
|
export * from './api/artists-api';
|
|
14
14
|
export * from './api/audio-api';
|
|
15
|
+
export * from './api/backup-api';
|
|
15
16
|
export * from './api/branding-api';
|
|
16
17
|
export * from './api/channels-api';
|
|
17
18
|
export * from './api/client-log-api';
|
|
@@ -37,6 +38,7 @@ export * from './api/live-tv-api';
|
|
|
37
38
|
export * from './api/localization-api';
|
|
38
39
|
export * from './api/lyrics-api';
|
|
39
40
|
export * from './api/media-info-api';
|
|
41
|
+
export * from './api/media-segments-api';
|
|
40
42
|
export * from './api/movies-api';
|
|
41
43
|
export * from './api/music-genres-api';
|
|
42
44
|
export * from './api/package-api';
|
|
@@ -8,8 +8,8 @@
|
|
|
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 { Configuration } from
|
|
12
|
-
import { AxiosInstance,
|
|
11
|
+
import type { Configuration } from './configuration';
|
|
12
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
13
|
export declare const BASE_PATH: string;
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -28,7 +28,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
28
28
|
*/
|
|
29
29
|
export interface RequestArgs {
|
|
30
30
|
url: string;
|
|
31
|
-
options:
|
|
31
|
+
options: RawAxiosRequestConfig;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
@@ -49,6 +49,17 @@ export declare class BaseAPI {
|
|
|
49
49
|
*/
|
|
50
50
|
export declare class RequiredError extends Error {
|
|
51
51
|
field: string;
|
|
52
|
-
name: "RequiredError";
|
|
53
52
|
constructor(field: string, msg?: string);
|
|
54
53
|
}
|
|
54
|
+
interface ServerMap {
|
|
55
|
+
[key: string]: {
|
|
56
|
+
url: string;
|
|
57
|
+
description: string;
|
|
58
|
+
}[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const operationServerMap: ServerMap;
|
|
65
|
+
export {};
|
|
@@ -12,8 +12,6 @@ import globalAxios from 'axios';
|
|
|
12
12
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
13
13
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
14
14
|
*/
|
|
15
|
-
// Some imports not used depending on template conditions
|
|
16
|
-
// @ts-ignore
|
|
17
15
|
const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
18
16
|
/**
|
|
19
17
|
*
|
|
@@ -22,11 +20,12 @@ const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
|
22
20
|
*/
|
|
23
21
|
class BaseAPI {
|
|
24
22
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
23
|
+
var _a;
|
|
25
24
|
this.basePath = basePath;
|
|
26
25
|
this.axios = axios;
|
|
27
26
|
if (configuration) {
|
|
28
27
|
this.configuration = configuration;
|
|
29
|
-
this.basePath = configuration.basePath
|
|
28
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
}
|
|
@@ -43,5 +42,10 @@ class RequiredError extends Error {
|
|
|
43
42
|
this.name = "RequiredError";
|
|
44
43
|
}
|
|
45
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
const operationServerMap = {};
|
|
46
50
|
|
|
47
|
-
export { BASE_PATH, BaseAPI, RequiredError };
|
|
51
|
+
export { BASE_PATH, BaseAPI, RequiredError, operationServerMap };
|
|
@@ -8,9 +8,9 @@
|
|
|
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 { Configuration } from "./configuration";
|
|
12
|
-
import { RequestArgs } from "./base";
|
|
13
|
-
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
11
|
+
import type { Configuration } from "./configuration";
|
|
12
|
+
import type { RequestArgs } from "./base";
|
|
13
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -61,4 +61,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
61
61
|
*
|
|
62
62
|
* @export
|
|
63
63
|
*/
|
|
64
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T
|
|
64
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -39,25 +39,33 @@ const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
|
39
39
|
object[keyParamName] = localVarApiKeyValue;
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
43
|
+
if (parameter == null)
|
|
44
|
+
return;
|
|
45
|
+
if (typeof parameter === "object") {
|
|
46
|
+
if (Array.isArray(parameter)) {
|
|
47
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
if (urlSearchParams.has(key)) {
|
|
55
|
+
urlSearchParams.append(key, parameter);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
urlSearchParams.set(key, parameter);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
42
62
|
/**
|
|
43
63
|
*
|
|
44
64
|
* @export
|
|
45
65
|
*/
|
|
46
66
|
const setSearchParams = function (url, ...objects) {
|
|
47
67
|
const searchParams = new URLSearchParams(url.search);
|
|
48
|
-
|
|
49
|
-
for (const key in object) {
|
|
50
|
-
if (Array.isArray(object[key])) {
|
|
51
|
-
searchParams.delete(key);
|
|
52
|
-
for (const item of object[key]) {
|
|
53
|
-
searchParams.append(key, item);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
searchParams.set(key, object[key]);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
68
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
61
69
|
url.search = searchParams.toString();
|
|
62
70
|
};
|
|
63
71
|
/**
|
|
@@ -86,7 +94,8 @@ const toPathString = function (url) {
|
|
|
86
94
|
*/
|
|
87
95
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
88
96
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
89
|
-
|
|
97
|
+
var _a;
|
|
98
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url };
|
|
90
99
|
return axios.request(axiosRequestArgs);
|
|
91
100
|
};
|
|
92
101
|
};
|
|
@@ -14,6 +14,7 @@ export interface ConfigurationParameters {
|
|
|
14
14
|
password?: string;
|
|
15
15
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
16
16
|
basePath?: string;
|
|
17
|
+
serverIndex?: number;
|
|
17
18
|
baseOptions?: any;
|
|
18
19
|
formDataCtor?: new () => any;
|
|
19
20
|
}
|
|
@@ -52,6 +53,13 @@ export declare class Configuration {
|
|
|
52
53
|
* @memberof Configuration
|
|
53
54
|
*/
|
|
54
55
|
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* override server index
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
serverIndex?: number;
|
|
55
63
|
/**
|
|
56
64
|
* base options for axios calls
|
|
57
65
|
*
|
|
@@ -17,6 +17,7 @@ class Configuration {
|
|
|
17
17
|
this.password = param.password;
|
|
18
18
|
this.accessToken = param.accessToken;
|
|
19
19
|
this.basePath = param.basePath;
|
|
20
|
+
this.serverIndex = param.serverIndex;
|
|
20
21
|
this.baseOptions = param.baseOptions;
|
|
21
22
|
this.formDataCtor = param.formDataCtor;
|
|
22
23
|
}
|
|
@@ -2,6 +2,7 @@ export { ActivityLogApi, ActivityLogApiAxiosParamCreator, ActivityLogApiFactory,
|
|
|
2
2
|
export { ApiKeyApi, ApiKeyApiAxiosParamCreator, ApiKeyApiFactory, ApiKeyApiFp } from './api/api-key-api.js';
|
|
3
3
|
export { ArtistsApi, ArtistsApiAxiosParamCreator, ArtistsApiFactory, ArtistsApiFp } from './api/artists-api.js';
|
|
4
4
|
export { AudioApi, AudioApiAxiosParamCreator, AudioApiFactory, AudioApiFp } from './api/audio-api.js';
|
|
5
|
+
export { BackupApi, BackupApiAxiosParamCreator, BackupApiFactory, BackupApiFp } from './api/backup-api.js';
|
|
5
6
|
export { BrandingApi, BrandingApiAxiosParamCreator, BrandingApiFactory, BrandingApiFp } from './api/branding-api.js';
|
|
6
7
|
export { ChannelsApi, ChannelsApiAxiosParamCreator, ChannelsApiFactory, ChannelsApiFp } from './api/channels-api.js';
|
|
7
8
|
export { ClientLogApi, ClientLogApiAxiosParamCreator, ClientLogApiFactory, ClientLogApiFp } from './api/client-log-api.js';
|
|
@@ -27,6 +28,7 @@ export { LiveTvApi, LiveTvApiAxiosParamCreator, LiveTvApiFactory, LiveTvApiFp }
|
|
|
27
28
|
export { LocalizationApi, LocalizationApiAxiosParamCreator, LocalizationApiFactory, LocalizationApiFp } from './api/localization-api.js';
|
|
28
29
|
export { LyricsApi, LyricsApiAxiosParamCreator, LyricsApiFactory, LyricsApiFp } from './api/lyrics-api.js';
|
|
29
30
|
export { MediaInfoApi, MediaInfoApiAxiosParamCreator, MediaInfoApiFactory, MediaInfoApiFp } from './api/media-info-api.js';
|
|
31
|
+
export { MediaSegmentsApi, MediaSegmentsApiAxiosParamCreator, MediaSegmentsApiFactory, MediaSegmentsApiFp } from './api/media-segments-api.js';
|
|
30
32
|
export { MoviesApi, MoviesApiAxiosParamCreator, MoviesApiFactory, MoviesApiFp } from './api/movies-api.js';
|
|
31
33
|
export { MusicGenresApi, MusicGenresApiAxiosParamCreator, MusicGenresApiFactory, MusicGenresApiFp } from './api/music-genres-api.js';
|
|
32
34
|
export { PackageApi, PackageApiAxiosParamCreator, PackageApiFactory, PackageApiFp } from './api/package-api.js';
|
|
@@ -67,12 +69,15 @@ export { ChannelType } from './models/channel-type.js';
|
|
|
67
69
|
export { CodecType } from './models/codec-type.js';
|
|
68
70
|
export { CollectionType } from './models/collection-type.js';
|
|
69
71
|
export { CollectionTypeOptions } from './models/collection-type-options.js';
|
|
72
|
+
export { DatabaseLockingBehaviorTypes } from './models/database-locking-behavior-types.js';
|
|
70
73
|
export { DayOfWeek } from './models/day-of-week.js';
|
|
71
74
|
export { DayPattern } from './models/day-pattern.js';
|
|
75
|
+
export { DeinterlaceMethod } from './models/deinterlace-method.js';
|
|
72
76
|
export { DlnaProfileType } from './models/dlna-profile-type.js';
|
|
73
77
|
export { DownMixStereoAlgorithms } from './models/down-mix-stereo-algorithms.js';
|
|
74
78
|
export { DynamicDayOfWeek } from './models/dynamic-day-of-week.js';
|
|
75
79
|
export { EmbeddedSubtitleOptions } from './models/embedded-subtitle-options.js';
|
|
80
|
+
export { EncoderPreset } from './models/encoder-preset.js';
|
|
76
81
|
export { EncodingContext } from './models/encoding-context.js';
|
|
77
82
|
export { ExternalIdMediaType } from './models/external-id-media-type.js';
|
|
78
83
|
export { ExtraType } from './models/extra-type.js';
|
|
@@ -84,7 +89,7 @@ export { GroupRepeatMode } from './models/group-repeat-mode.js';
|
|
|
84
89
|
export { GroupShuffleMode } from './models/group-shuffle-mode.js';
|
|
85
90
|
export { GroupStateType } from './models/group-state-type.js';
|
|
86
91
|
export { GroupUpdateType } from './models/group-update-type.js';
|
|
87
|
-
export {
|
|
92
|
+
export { HardwareAccelerationType } from './models/hardware-acceleration-type.js';
|
|
88
93
|
export { ImageFormat } from './models/image-format.js';
|
|
89
94
|
export { ImageOrientation } from './models/image-orientation.js';
|
|
90
95
|
export { ImageResolution } from './models/image-resolution.js';
|
|
@@ -99,6 +104,7 @@ export { LiveTvServiceStatus } from './models/live-tv-service-status.js';
|
|
|
99
104
|
export { LocationType } from './models/location-type.js';
|
|
100
105
|
export { LogLevel } from './models/log-level.js';
|
|
101
106
|
export { MediaProtocol } from './models/media-protocol.js';
|
|
107
|
+
export { MediaSegmentType } from './models/media-segment-type.js';
|
|
102
108
|
export { MediaSourceType } from './models/media-source-type.js';
|
|
103
109
|
export { MediaStreamProtocol } from './models/media-stream-protocol.js';
|
|
104
110
|
export { MediaStreamType } from './models/media-stream-type.js';
|
|
@@ -133,6 +139,10 @@ export { SubtitlePlaybackMode } from './models/subtitle-playback-mode.js';
|
|
|
133
139
|
export { SyncPlayUserAccessType } from './models/sync-play-user-access-type.js';
|
|
134
140
|
export { TaskCompletionStatus } from './models/task-completion-status.js';
|
|
135
141
|
export { TaskState } from './models/task-state.js';
|
|
142
|
+
export { TaskTriggerInfoType } from './models/task-trigger-info-type.js';
|
|
143
|
+
export { TonemappingAlgorithm } from './models/tonemapping-algorithm.js';
|
|
144
|
+
export { TonemappingMode } from './models/tonemapping-mode.js';
|
|
145
|
+
export { TonemappingRange } from './models/tonemapping-range.js';
|
|
136
146
|
export { TranscodeReason } from './models/transcode-reason.js';
|
|
137
147
|
export { TranscodeSeekInfo } from './models/transcode-seek-info.js';
|
|
138
148
|
export { TranscodingInfoTranscodeReasonsEnum } from './models/transcoding-info.js';
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { DynamicDayOfWeek } from './dynamic-day-of-week';
|
|
11
|
+
import type { DynamicDayOfWeek } from './dynamic-day-of-week';
|
|
12
12
|
/**
|
|
13
13
|
* An entity representing a user\'s access schedule.
|
|
14
14
|
* @export
|
|
@@ -8,8 +8,8 @@
|
|
|
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 { ActivityLogEntry } from './activity-log-entry';
|
|
12
|
-
import { SessionMessageType } from './session-message-type';
|
|
11
|
+
import type { ActivityLogEntry } from './activity-log-entry';
|
|
12
|
+
import type { SessionMessageType } from './session-message-type';
|
|
13
13
|
/**
|
|
14
14
|
* Activity log created message.
|
|
15
15
|
* @export
|
|
@@ -8,9 +8,9 @@
|
|
|
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 { ActivityLogEntry } from './activity-log-entry';
|
|
11
|
+
import type { ActivityLogEntry } from './activity-log-entry';
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Query result container.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface ActivityLogEntryQueryResult
|
|
16
16
|
*/
|
|
@@ -20,7 +20,7 @@ export interface ActivityLogEntryQueryResult {
|
|
|
20
20
|
* @type {Array<ActivityLogEntry>}
|
|
21
21
|
* @memberof ActivityLogEntryQueryResult
|
|
22
22
|
*/
|
|
23
|
-
'Items'?: Array<ActivityLogEntry
|
|
23
|
+
'Items'?: Array<ActivityLogEntry>;
|
|
24
24
|
/**
|
|
25
25
|
* Gets or sets the total number of records available.
|
|
26
26
|
* @type {number}
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { SessionMessageType } from './session-message-type';
|
|
11
|
+
import type { SessionMessageType } from './session-message-type';
|
|
12
12
|
/**
|
|
13
13
|
* Activity log entry start message. Data is the timing data encoded as \"$initialDelay,$interval\" in ms.
|
|
14
14
|
* @export
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { SessionMessageType } from './session-message-type';
|
|
11
|
+
import type { SessionMessageType } from './session-message-type';
|
|
12
12
|
/**
|
|
13
13
|
* Activity log entry stop message.
|
|
14
14
|
* @export
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { LogLevel } from './log-level';
|
|
11
|
+
import type { LogLevel } from './log-level';
|
|
12
12
|
/**
|
|
13
13
|
* An activity log entry.
|
|
14
14
|
* @export
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { LibraryOptions } from './library-options';
|
|
11
|
+
import type { LibraryOptions } from './library-options';
|
|
12
12
|
/**
|
|
13
13
|
* Add virtual folder dto.
|
|
14
14
|
* @export
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { SongInfo } from './song-info';
|
|
11
|
+
import type { SongInfo } from './song-info';
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
@@ -47,11 +47,11 @@ export interface AlbumInfo {
|
|
|
47
47
|
'MetadataCountryCode'?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
* Gets or sets the provider ids.
|
|
50
|
-
* @type {{ [key: string]: string; }}
|
|
50
|
+
* @type {{ [key: string]: string | null; }}
|
|
51
51
|
* @memberof AlbumInfo
|
|
52
52
|
*/
|
|
53
53
|
'ProviderIds'?: {
|
|
54
|
-
[key: string]: string;
|
|
54
|
+
[key: string]: string | null;
|
|
55
55
|
} | null;
|
|
56
56
|
/**
|
|
57
57
|
* Gets or sets the year.
|
|
@@ -91,11 +91,11 @@ export interface AlbumInfo {
|
|
|
91
91
|
'AlbumArtists'?: Array<string>;
|
|
92
92
|
/**
|
|
93
93
|
* Gets or sets the artist provider ids.
|
|
94
|
-
* @type {{ [key: string]: string; }}
|
|
94
|
+
* @type {{ [key: string]: string | null; }}
|
|
95
95
|
* @memberof AlbumInfo
|
|
96
96
|
*/
|
|
97
97
|
'ArtistProviderIds'?: {
|
|
98
|
-
[key: string]: string;
|
|
98
|
+
[key: string]: string | null;
|
|
99
99
|
};
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { ThemeMediaResult } from './theme-media-result';
|
|
11
|
+
import type { ThemeMediaResult } from './theme-media-result';
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { SongInfo } from './song-info';
|
|
11
|
+
import type { SongInfo } from './song-info';
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
@@ -47,11 +47,11 @@ export interface ArtistInfo {
|
|
|
47
47
|
'MetadataCountryCode'?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
* Gets or sets the provider ids.
|
|
50
|
-
* @type {{ [key: string]: string; }}
|
|
50
|
+
* @type {{ [key: string]: string | null; }}
|
|
51
51
|
* @memberof ArtistInfo
|
|
52
52
|
*/
|
|
53
53
|
'ProviderIds'?: {
|
|
54
|
-
[key: string]: string;
|
|
54
|
+
[key: string]: string | null;
|
|
55
55
|
} | null;
|
|
56
56
|
/**
|
|
57
57
|
* Gets or sets the year.
|