@jellyfin/sdk 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/lib/api.d.ts +0 -11
- package/lib/api.js +0 -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 +81 -249
- package/lib/generated-client/api/audio-api.js +93 -245
- 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 +28 -29
- package/lib/generated-client/api/configuration-api.js +30 -16
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +15 -9
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +36 -22
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +15 -14
- 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 +34 -18
- 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 +15 -27
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +36 -28
- package/lib/generated-client/api/image-api.d.ts +206 -644
- package/lib/generated-client/api/image-api.js +269 -596
- 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 +9 -13
- package/lib/generated-client/api/item-refresh-api.js +8 -9
- 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 +38 -122
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +212 -142
- 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 +224 -332
- package/lib/generated-client/api/live-tv-api.js +273 -258
- 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 +45 -30
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +45 -52
- 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 +15 -27
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +37 -23
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +15 -22
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +137 -63
- package/lib/generated-client/api/playstate-api.d.ts +54 -80
- package/lib/generated-client/api/playstate-api.js +64 -63
- 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 +23 -12
- 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 +36 -23
- 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 +38 -17
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +15 -26
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +68 -69
- 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 +120 -120
- package/lib/generated-client/api/sync-play-api.js +133 -70
- package/lib/generated-client/api/system-api.d.ts +49 -49
- package/lib/generated-client/api/system-api.js +44 -14
- 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 +29 -62
- 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 +93 -56
- 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 +15 -24
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/base.d.ts +15 -4
- package/lib/generated-client/base.js +8 -4
- package/lib/generated-client/common.d.ts +3 -3
- package/lib/generated-client/common.js +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 +8 -1
- package/lib/generated-client/models/access-schedule.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/album-info.d.ts +5 -5
- package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/artist-info.d.ts +3 -3
- package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/authentication-result.d.ts +7 -7
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +26 -26
- package/lib/generated-client/models/base-item-person.d.ts +2 -2
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/book-info.d.ts +2 -2
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/box-set-info.d.ts +2 -2
- package/lib/generated-client/models/channel-features.d.ts +3 -3
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
- package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
- package/lib/generated-client/models/client-capabilities.d.ts +3 -3
- package/lib/generated-client/models/codec-profile.d.ts +15 -9
- package/lib/generated-client/models/container-profile.d.ts +12 -6
- package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
- package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
- package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
- package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-dto.d.ts +84 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +1 -1
- package/lib/generated-client/models/device-profile.d.ts +8 -8
- package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
- package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
- package/lib/generated-client/models/encoder-preset.d.ts +29 -0
- package/lib/generated-client/models/encoder-preset.js +32 -0
- package/lib/generated-client/models/encoding-options.d.ts +43 -19
- package/lib/generated-client/models/external-id-info.d.ts +2 -1
- package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
- package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
- package/lib/generated-client/models/general-command-message.d.ts +2 -2
- package/lib/generated-client/models/general-command.d.ts +3 -3
- package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-info-dto.d.ts +1 -1
- package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-state-update.d.ts +2 -2
- package/lib/generated-client/models/group-update.d.ts +23 -5
- package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
- package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
- package/lib/generated-client/models/image-info.d.ts +1 -1
- package/lib/generated-client/models/image-option.d.ts +1 -1
- package/lib/generated-client/models/image-provider-info.d.ts +1 -1
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
- package/lib/generated-client/models/index.d.ts +13 -6
- package/lib/generated-client/models/index.js +7 -1
- package/lib/generated-client/models/installation-info.d.ts +1 -1
- package/lib/generated-client/models/library-changed-message.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
- package/lib/generated-client/models/library-options.d.ts +57 -3
- package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
- package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
- package/lib/generated-client/models/live-stream-response.d.ts +1 -1
- package/lib/generated-client/models/live-tv-info.d.ts +1 -1
- package/lib/generated-client/models/live-tv-options.d.ts +2 -2
- package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +2 -2
- package/lib/generated-client/models/media-path-dto.d.ts +1 -1
- package/lib/generated-client/models/media-path-info.d.ts +0 -6
- package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
- package/lib/generated-client/models/media-segment-type.d.ts +24 -0
- package/lib/generated-client/models/media-segment-type.js +27 -0
- package/lib/generated-client/models/media-source-info.d.ts +29 -11
- package/lib/generated-client/models/media-stream.d.ts +17 -5
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/movie-info.d.ts +2 -2
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/music-video-info.d.ts +2 -2
- package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
- package/lib/generated-client/models/package-info.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
- package/lib/generated-client/models/play-message.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update.d.ts +4 -4
- package/lib/generated-client/models/play-request.d.ts +1 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
- package/lib/generated-client/models/playback-info-response.d.ts +2 -2
- package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
- package/lib/generated-client/models/playback-start-info.d.ts +5 -5
- package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
- package/lib/generated-client/models/player-state-info.d.ts +3 -3
- package/lib/generated-client/models/playlist-dto.d.ts +36 -0
- package/lib/generated-client/models/playstate-message.d.ts +2 -2
- package/lib/generated-client/models/playstate-request.d.ts +1 -1
- package/lib/generated-client/models/plugin-info.d.ts +1 -1
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
- package/lib/generated-client/models/problem-details.d.ts +1 -1
- package/lib/generated-client/models/profile-condition.d.ts +2 -2
- package/lib/generated-client/models/query-filters.d.ts +1 -1
- package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
- package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
- package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
- package/lib/generated-client/models/remote-image-info.d.ts +2 -2
- package/lib/generated-client/models/remote-image-result.d.ts +1 -1
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
- package/lib/generated-client/models/remote-search-result.d.ts +2 -2
- package/lib/generated-client/models/restart-required-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
- package/lib/generated-client/models/search-hint-result.d.ts +1 -1
- package/lib/generated-client/models/search-hint.d.ts +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 +8 -14
- package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
- package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
- package/lib/generated-client/models/session-info-dto.d.ts +199 -0
- package/lib/generated-client/models/session-info.d.ts +8 -8
- package/lib/generated-client/models/sessions-message.d.ts +4 -4
- package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
- package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/song-info.d.ts +2 -2
- package/lib/generated-client/models/string-group-update.d.ts +1 -1
- package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
- package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
- package/lib/generated-client/models/system-info.d.ts +2 -2
- package/lib/generated-client/models/task-info.d.ts +3 -3
- package/lib/generated-client/models/task-result.d.ts +1 -1
- package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
- package/lib/generated-client/models/theme-media-result.d.ts +2 -2
- package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
- package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
- package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
- package/lib/generated-client/models/tonemapping-mode.js +26 -0
- package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
- package/lib/generated-client/models/tonemapping-range.js +24 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/trailer-info.d.ts +2 -2
- package/lib/generated-client/models/transcode-reason.d.ts +1 -0
- package/lib/generated-client/models/transcode-reason.js +2 -1
- package/lib/generated-client/models/transcoding-info.d.ts +16 -16
- package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
- package/lib/generated-client/models/trickplay-options.d.ts +8 -2
- package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
- package/lib/generated-client/models/type-options.d.ts +1 -1
- package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
- package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
- package/lib/generated-client/models/user-configuration.d.ts +1 -1
- package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
- package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
- package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
- package/lib/generated-client/models/user-dto.d.ts +2 -2
- package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
- package/lib/generated-client/models/user-policy.d.ts +3 -3
- package/lib/generated-client/models/user-updated-message.d.ts +2 -2
- package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
- package/lib/generated-client/models/web-socket-message.d.ts +2 -2
- package/lib/utils/address-candidates.js +15 -10
- package/lib/utils/api/index.d.ts +1 -0
- package/lib/utils/api/index.js +1 -0
- package/lib/utils/api/media-segments-api.d.ts +8 -0
- package/lib/utils/api/media-segments-api.js +12 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/url/index.d.ts +16 -3
- package/lib/utils/url/index.js +26 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +13 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import globalAxios from 'axios';
|
|
2
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, 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 */
|
|
@@ -645,8 +645,11 @@ const SessionApiFp = function (configuration) {
|
|
|
645
645
|
* @throws {RequiredError}
|
|
646
646
|
*/
|
|
647
647
|
async addUserToSession(sessionId, userId, options) {
|
|
648
|
+
var _a, _b, _c;
|
|
648
649
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addUserToSession(sessionId, userId, options);
|
|
649
|
-
|
|
650
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
651
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.addUserToSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
652
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
650
653
|
},
|
|
651
654
|
/**
|
|
652
655
|
*
|
|
@@ -659,8 +662,11 @@ const SessionApiFp = function (configuration) {
|
|
|
659
662
|
* @throws {RequiredError}
|
|
660
663
|
*/
|
|
661
664
|
async displayContent(sessionId, itemType, itemId, itemName, options) {
|
|
665
|
+
var _a, _b, _c;
|
|
662
666
|
const localVarAxiosArgs = await localVarAxiosParamCreator.displayContent(sessionId, itemType, itemId, itemName, options);
|
|
663
|
-
|
|
667
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
668
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.displayContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
669
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
664
670
|
},
|
|
665
671
|
/**
|
|
666
672
|
*
|
|
@@ -669,8 +675,11 @@ const SessionApiFp = function (configuration) {
|
|
|
669
675
|
* @throws {RequiredError}
|
|
670
676
|
*/
|
|
671
677
|
async getAuthProviders(options) {
|
|
678
|
+
var _a, _b, _c;
|
|
672
679
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthProviders(options);
|
|
673
|
-
|
|
680
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
681
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.getAuthProviders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
682
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
674
683
|
},
|
|
675
684
|
/**
|
|
676
685
|
*
|
|
@@ -679,8 +688,11 @@ const SessionApiFp = function (configuration) {
|
|
|
679
688
|
* @throws {RequiredError}
|
|
680
689
|
*/
|
|
681
690
|
async getPasswordResetProviders(options) {
|
|
691
|
+
var _a, _b, _c;
|
|
682
692
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPasswordResetProviders(options);
|
|
683
|
-
|
|
693
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
694
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.getPasswordResetProviders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
695
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
684
696
|
},
|
|
685
697
|
/**
|
|
686
698
|
*
|
|
@@ -692,8 +704,11 @@ const SessionApiFp = function (configuration) {
|
|
|
692
704
|
* @throws {RequiredError}
|
|
693
705
|
*/
|
|
694
706
|
async getSessions(controllableByUserId, deviceId, activeWithinSeconds, options) {
|
|
707
|
+
var _a, _b, _c;
|
|
695
708
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options);
|
|
696
|
-
|
|
709
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
710
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.getSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
711
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
697
712
|
},
|
|
698
713
|
/**
|
|
699
714
|
*
|
|
@@ -710,8 +725,11 @@ const SessionApiFp = function (configuration) {
|
|
|
710
725
|
* @throws {RequiredError}
|
|
711
726
|
*/
|
|
712
727
|
async play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
|
|
728
|
+
var _a, _b, _c;
|
|
713
729
|
const localVarAxiosArgs = await localVarAxiosParamCreator.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options);
|
|
714
|
-
|
|
730
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
731
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.play']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
732
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
715
733
|
},
|
|
716
734
|
/**
|
|
717
735
|
*
|
|
@@ -725,8 +743,11 @@ const SessionApiFp = function (configuration) {
|
|
|
725
743
|
* @throws {RequiredError}
|
|
726
744
|
*/
|
|
727
745
|
async postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options) {
|
|
746
|
+
var _a, _b, _c;
|
|
728
747
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options);
|
|
729
|
-
|
|
748
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
749
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.postCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
750
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
730
751
|
},
|
|
731
752
|
/**
|
|
732
753
|
*
|
|
@@ -737,8 +758,11 @@ const SessionApiFp = function (configuration) {
|
|
|
737
758
|
* @throws {RequiredError}
|
|
738
759
|
*/
|
|
739
760
|
async postFullCapabilities(clientCapabilitiesDto, id, options) {
|
|
761
|
+
var _a, _b, _c;
|
|
740
762
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postFullCapabilities(clientCapabilitiesDto, id, options);
|
|
741
|
-
|
|
763
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
764
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.postFullCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
765
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
742
766
|
},
|
|
743
767
|
/**
|
|
744
768
|
*
|
|
@@ -749,8 +773,11 @@ const SessionApiFp = function (configuration) {
|
|
|
749
773
|
* @throws {RequiredError}
|
|
750
774
|
*/
|
|
751
775
|
async removeUserFromSession(sessionId, userId, options) {
|
|
776
|
+
var _a, _b, _c;
|
|
752
777
|
const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromSession(sessionId, userId, options);
|
|
753
|
-
|
|
778
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
779
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.removeUserFromSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
780
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
754
781
|
},
|
|
755
782
|
/**
|
|
756
783
|
*
|
|
@@ -759,8 +786,11 @@ const SessionApiFp = function (configuration) {
|
|
|
759
786
|
* @throws {RequiredError}
|
|
760
787
|
*/
|
|
761
788
|
async reportSessionEnded(options) {
|
|
789
|
+
var _a, _b, _c;
|
|
762
790
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reportSessionEnded(options);
|
|
763
|
-
|
|
791
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
792
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.reportSessionEnded']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
793
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
764
794
|
},
|
|
765
795
|
/**
|
|
766
796
|
*
|
|
@@ -771,8 +801,11 @@ const SessionApiFp = function (configuration) {
|
|
|
771
801
|
* @throws {RequiredError}
|
|
772
802
|
*/
|
|
773
803
|
async reportViewing(itemId, sessionId, options) {
|
|
804
|
+
var _a, _b, _c;
|
|
774
805
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reportViewing(itemId, sessionId, options);
|
|
775
|
-
|
|
806
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
807
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.reportViewing']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
808
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
776
809
|
},
|
|
777
810
|
/**
|
|
778
811
|
*
|
|
@@ -783,8 +816,11 @@ const SessionApiFp = function (configuration) {
|
|
|
783
816
|
* @throws {RequiredError}
|
|
784
817
|
*/
|
|
785
818
|
async sendFullGeneralCommand(sessionId, generalCommand, options) {
|
|
819
|
+
var _a, _b, _c;
|
|
786
820
|
const localVarAxiosArgs = await localVarAxiosParamCreator.sendFullGeneralCommand(sessionId, generalCommand, options);
|
|
787
|
-
|
|
821
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
822
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendFullGeneralCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
823
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
788
824
|
},
|
|
789
825
|
/**
|
|
790
826
|
*
|
|
@@ -795,8 +831,11 @@ const SessionApiFp = function (configuration) {
|
|
|
795
831
|
* @throws {RequiredError}
|
|
796
832
|
*/
|
|
797
833
|
async sendGeneralCommand(sessionId, command, options) {
|
|
834
|
+
var _a, _b, _c;
|
|
798
835
|
const localVarAxiosArgs = await localVarAxiosParamCreator.sendGeneralCommand(sessionId, command, options);
|
|
799
|
-
|
|
836
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
837
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendGeneralCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
838
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
800
839
|
},
|
|
801
840
|
/**
|
|
802
841
|
*
|
|
@@ -807,8 +846,11 @@ const SessionApiFp = function (configuration) {
|
|
|
807
846
|
* @throws {RequiredError}
|
|
808
847
|
*/
|
|
809
848
|
async sendMessageCommand(sessionId, messageCommand, options) {
|
|
849
|
+
var _a, _b, _c;
|
|
810
850
|
const localVarAxiosArgs = await localVarAxiosParamCreator.sendMessageCommand(sessionId, messageCommand, options);
|
|
811
|
-
|
|
851
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
852
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendMessageCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
853
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
812
854
|
},
|
|
813
855
|
/**
|
|
814
856
|
*
|
|
@@ -821,8 +863,11 @@ const SessionApiFp = function (configuration) {
|
|
|
821
863
|
* @throws {RequiredError}
|
|
822
864
|
*/
|
|
823
865
|
async sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options) {
|
|
866
|
+
var _a, _b, _c;
|
|
824
867
|
const localVarAxiosArgs = await localVarAxiosParamCreator.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options);
|
|
825
|
-
|
|
868
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
869
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendPlaystateCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
870
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
826
871
|
},
|
|
827
872
|
/**
|
|
828
873
|
*
|
|
@@ -833,8 +878,11 @@ const SessionApiFp = function (configuration) {
|
|
|
833
878
|
* @throws {RequiredError}
|
|
834
879
|
*/
|
|
835
880
|
async sendSystemCommand(sessionId, command, options) {
|
|
881
|
+
var _a, _b, _c;
|
|
836
882
|
const localVarAxiosArgs = await localVarAxiosParamCreator.sendSystemCommand(sessionId, command, options);
|
|
837
|
-
|
|
883
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
884
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SessionApi.sendSystemCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
885
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
838
886
|
},
|
|
839
887
|
};
|
|
840
888
|
};
|
|
@@ -848,26 +896,22 @@ const SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
848
896
|
/**
|
|
849
897
|
*
|
|
850
898
|
* @summary Adds an additional user to a session.
|
|
851
|
-
* @param {
|
|
852
|
-
* @param {string} userId The user id.
|
|
899
|
+
* @param {SessionApiAddUserToSessionRequest} requestParameters Request parameters.
|
|
853
900
|
* @param {*} [options] Override http request option.
|
|
854
901
|
* @throws {RequiredError}
|
|
855
902
|
*/
|
|
856
|
-
addUserToSession(
|
|
857
|
-
return localVarFp.addUserToSession(sessionId, userId, options).then((request) => request(axios, basePath));
|
|
903
|
+
addUserToSession(requestParameters, options) {
|
|
904
|
+
return localVarFp.addUserToSession(requestParameters.sessionId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
858
905
|
},
|
|
859
906
|
/**
|
|
860
907
|
*
|
|
861
908
|
* @summary Instructs a session to browse to an item or view.
|
|
862
|
-
* @param {
|
|
863
|
-
* @param {BaseItemKind} itemType The type of item to browse to.
|
|
864
|
-
* @param {string} itemId The Id of the item.
|
|
865
|
-
* @param {string} itemName The name of the item.
|
|
909
|
+
* @param {SessionApiDisplayContentRequest} requestParameters Request parameters.
|
|
866
910
|
* @param {*} [options] Override http request option.
|
|
867
911
|
* @throws {RequiredError}
|
|
868
912
|
*/
|
|
869
|
-
displayContent(
|
|
870
|
-
return localVarFp.displayContent(sessionId, itemType, itemId, itemName, options).then((request) => request(axios, basePath));
|
|
913
|
+
displayContent(requestParameters, options) {
|
|
914
|
+
return localVarFp.displayContent(requestParameters.sessionId, requestParameters.itemType, requestParameters.itemId, requestParameters.itemName, options).then((request) => request(axios, basePath));
|
|
871
915
|
},
|
|
872
916
|
/**
|
|
873
917
|
*
|
|
@@ -890,67 +934,52 @@ const SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
890
934
|
/**
|
|
891
935
|
*
|
|
892
936
|
* @summary Gets a list of sessions.
|
|
893
|
-
* @param {
|
|
894
|
-
* @param {string} [deviceId] Filter by device Id.
|
|
895
|
-
* @param {number} [activeWithinSeconds] Optional. Filter by sessions that were active in the last n seconds.
|
|
937
|
+
* @param {SessionApiGetSessionsRequest} requestParameters Request parameters.
|
|
896
938
|
* @param {*} [options] Override http request option.
|
|
897
939
|
* @throws {RequiredError}
|
|
898
940
|
*/
|
|
899
|
-
getSessions(
|
|
900
|
-
return localVarFp.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options).then((request) => request(axios, basePath));
|
|
941
|
+
getSessions(requestParameters = {}, options) {
|
|
942
|
+
return localVarFp.getSessions(requestParameters.controllableByUserId, requestParameters.deviceId, requestParameters.activeWithinSeconds, options).then((request) => request(axios, basePath));
|
|
901
943
|
},
|
|
902
944
|
/**
|
|
903
945
|
*
|
|
904
946
|
* @summary Instructs a session to play an item.
|
|
905
|
-
* @param {
|
|
906
|
-
* @param {PlayCommand} playCommand The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now.
|
|
907
|
-
* @param {Array<string>} itemIds The ids of the items to play, comma delimited.
|
|
908
|
-
* @param {number} [startPositionTicks] The starting position of the first item.
|
|
909
|
-
* @param {string} [mediaSourceId] Optional. The media source id.
|
|
910
|
-
* @param {number} [audioStreamIndex] Optional. The index of the audio stream to play.
|
|
911
|
-
* @param {number} [subtitleStreamIndex] Optional. The index of the subtitle stream to play.
|
|
912
|
-
* @param {number} [startIndex] Optional. The start index.
|
|
947
|
+
* @param {SessionApiPlayRequest} requestParameters Request parameters.
|
|
913
948
|
* @param {*} [options] Override http request option.
|
|
914
949
|
* @throws {RequiredError}
|
|
915
950
|
*/
|
|
916
|
-
play(
|
|
917
|
-
return localVarFp.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options).then((request) => request(axios, basePath));
|
|
951
|
+
play(requestParameters, options) {
|
|
952
|
+
return localVarFp.play(requestParameters.sessionId, requestParameters.playCommand, requestParameters.itemIds, requestParameters.startPositionTicks, requestParameters.mediaSourceId, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.startIndex, options).then((request) => request(axios, basePath));
|
|
918
953
|
},
|
|
919
954
|
/**
|
|
920
955
|
*
|
|
921
956
|
* @summary Updates capabilities for a device.
|
|
922
|
-
* @param {
|
|
923
|
-
* @param {Array<MediaType>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
|
|
924
|
-
* @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
|
|
925
|
-
* @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
|
|
926
|
-
* @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
|
|
957
|
+
* @param {SessionApiPostCapabilitiesRequest} requestParameters Request parameters.
|
|
927
958
|
* @param {*} [options] Override http request option.
|
|
928
959
|
* @throws {RequiredError}
|
|
929
960
|
*/
|
|
930
|
-
postCapabilities(
|
|
931
|
-
return localVarFp.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options).then((request) => request(axios, basePath));
|
|
961
|
+
postCapabilities(requestParameters = {}, options) {
|
|
962
|
+
return localVarFp.postCapabilities(requestParameters.id, requestParameters.playableMediaTypes, requestParameters.supportedCommands, requestParameters.supportsMediaControl, requestParameters.supportsPersistentIdentifier, options).then((request) => request(axios, basePath));
|
|
932
963
|
},
|
|
933
964
|
/**
|
|
934
965
|
*
|
|
935
966
|
* @summary Updates capabilities for a device.
|
|
936
|
-
* @param {
|
|
937
|
-
* @param {string} [id] The session id.
|
|
967
|
+
* @param {SessionApiPostFullCapabilitiesRequest} requestParameters Request parameters.
|
|
938
968
|
* @param {*} [options] Override http request option.
|
|
939
969
|
* @throws {RequiredError}
|
|
940
970
|
*/
|
|
941
|
-
postFullCapabilities(
|
|
942
|
-
return localVarFp.postFullCapabilities(clientCapabilitiesDto, id, options).then((request) => request(axios, basePath));
|
|
971
|
+
postFullCapabilities(requestParameters, options) {
|
|
972
|
+
return localVarFp.postFullCapabilities(requestParameters.clientCapabilitiesDto, requestParameters.id, options).then((request) => request(axios, basePath));
|
|
943
973
|
},
|
|
944
974
|
/**
|
|
945
975
|
*
|
|
946
976
|
* @summary Removes an additional user from a session.
|
|
947
|
-
* @param {
|
|
948
|
-
* @param {string} userId The user id.
|
|
977
|
+
* @param {SessionApiRemoveUserFromSessionRequest} requestParameters Request parameters.
|
|
949
978
|
* @param {*} [options] Override http request option.
|
|
950
979
|
* @throws {RequiredError}
|
|
951
980
|
*/
|
|
952
|
-
removeUserFromSession(
|
|
953
|
-
return localVarFp.removeUserFromSession(sessionId, userId, options).then((request) => request(axios, basePath));
|
|
981
|
+
removeUserFromSession(requestParameters, options) {
|
|
982
|
+
return localVarFp.removeUserFromSession(requestParameters.sessionId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
954
983
|
},
|
|
955
984
|
/**
|
|
956
985
|
*
|
|
@@ -964,70 +993,62 @@ const SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
964
993
|
/**
|
|
965
994
|
*
|
|
966
995
|
* @summary Reports that a session is viewing an item.
|
|
967
|
-
* @param {
|
|
968
|
-
* @param {string} [sessionId] The session id.
|
|
996
|
+
* @param {SessionApiReportViewingRequest} requestParameters Request parameters.
|
|
969
997
|
* @param {*} [options] Override http request option.
|
|
970
998
|
* @throws {RequiredError}
|
|
971
999
|
*/
|
|
972
|
-
reportViewing(
|
|
973
|
-
return localVarFp.reportViewing(itemId, sessionId, options).then((request) => request(axios, basePath));
|
|
1000
|
+
reportViewing(requestParameters, options) {
|
|
1001
|
+
return localVarFp.reportViewing(requestParameters.itemId, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
974
1002
|
},
|
|
975
1003
|
/**
|
|
976
1004
|
*
|
|
977
1005
|
* @summary Issues a full general command to a client.
|
|
978
|
-
* @param {
|
|
979
|
-
* @param {GeneralCommand} generalCommand The MediaBrowser.Model.Session.GeneralCommand.
|
|
1006
|
+
* @param {SessionApiSendFullGeneralCommandRequest} requestParameters Request parameters.
|
|
980
1007
|
* @param {*} [options] Override http request option.
|
|
981
1008
|
* @throws {RequiredError}
|
|
982
1009
|
*/
|
|
983
|
-
sendFullGeneralCommand(
|
|
984
|
-
return localVarFp.sendFullGeneralCommand(sessionId, generalCommand, options).then((request) => request(axios, basePath));
|
|
1010
|
+
sendFullGeneralCommand(requestParameters, options) {
|
|
1011
|
+
return localVarFp.sendFullGeneralCommand(requestParameters.sessionId, requestParameters.generalCommand, options).then((request) => request(axios, basePath));
|
|
985
1012
|
},
|
|
986
1013
|
/**
|
|
987
1014
|
*
|
|
988
1015
|
* @summary Issues a general command to a client.
|
|
989
|
-
* @param {
|
|
990
|
-
* @param {GeneralCommandType} command The command to send.
|
|
1016
|
+
* @param {SessionApiSendGeneralCommandRequest} requestParameters Request parameters.
|
|
991
1017
|
* @param {*} [options] Override http request option.
|
|
992
1018
|
* @throws {RequiredError}
|
|
993
1019
|
*/
|
|
994
|
-
sendGeneralCommand(
|
|
995
|
-
return localVarFp.sendGeneralCommand(sessionId, command, options).then((request) => request(axios, basePath));
|
|
1020
|
+
sendGeneralCommand(requestParameters, options) {
|
|
1021
|
+
return localVarFp.sendGeneralCommand(requestParameters.sessionId, requestParameters.command, options).then((request) => request(axios, basePath));
|
|
996
1022
|
},
|
|
997
1023
|
/**
|
|
998
1024
|
*
|
|
999
1025
|
* @summary Issues a command to a client to display a message to the user.
|
|
1000
|
-
* @param {
|
|
1001
|
-
* @param {MessageCommand} messageCommand The MediaBrowser.Model.Session.MessageCommand object containing Header, Message Text, and TimeoutMs.
|
|
1026
|
+
* @param {SessionApiSendMessageCommandRequest} requestParameters Request parameters.
|
|
1002
1027
|
* @param {*} [options] Override http request option.
|
|
1003
1028
|
* @throws {RequiredError}
|
|
1004
1029
|
*/
|
|
1005
|
-
sendMessageCommand(
|
|
1006
|
-
return localVarFp.sendMessageCommand(sessionId, messageCommand, options).then((request) => request(axios, basePath));
|
|
1030
|
+
sendMessageCommand(requestParameters, options) {
|
|
1031
|
+
return localVarFp.sendMessageCommand(requestParameters.sessionId, requestParameters.messageCommand, options).then((request) => request(axios, basePath));
|
|
1007
1032
|
},
|
|
1008
1033
|
/**
|
|
1009
1034
|
*
|
|
1010
1035
|
* @summary Issues a playstate command to a client.
|
|
1011
|
-
* @param {
|
|
1012
|
-
* @param {PlaystateCommand} command The MediaBrowser.Model.Session.PlaystateCommand.
|
|
1013
|
-
* @param {number} [seekPositionTicks] The optional position ticks.
|
|
1014
|
-
* @param {string} [controllingUserId] The optional controlling user id.
|
|
1036
|
+
* @param {SessionApiSendPlaystateCommandRequest} requestParameters Request parameters.
|
|
1015
1037
|
* @param {*} [options] Override http request option.
|
|
1016
1038
|
* @throws {RequiredError}
|
|
1017
1039
|
*/
|
|
1018
|
-
sendPlaystateCommand(
|
|
1019
|
-
return localVarFp.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options).then((request) => request(axios, basePath));
|
|
1040
|
+
sendPlaystateCommand(requestParameters, options) {
|
|
1041
|
+
return localVarFp.sendPlaystateCommand(requestParameters.sessionId, requestParameters.command, requestParameters.seekPositionTicks, requestParameters.controllingUserId, options).then((request) => request(axios, basePath));
|
|
1020
1042
|
},
|
|
1021
1043
|
/**
|
|
1022
1044
|
*
|
|
1023
1045
|
* @summary Issues a system command to a client.
|
|
1024
|
-
* @param {
|
|
1025
|
-
* @param {GeneralCommandType} command The command to send.
|
|
1046
|
+
* @param {SessionApiSendSystemCommandRequest} requestParameters Request parameters.
|
|
1026
1047
|
* @param {*} [options] Override http request option.
|
|
1027
1048
|
* @throws {RequiredError}
|
|
1028
1049
|
*/
|
|
1029
|
-
sendSystemCommand(
|
|
1030
|
-
return localVarFp.sendSystemCommand(sessionId, command, options).then((request) => request(axios, basePath));
|
|
1050
|
+
sendSystemCommand(requestParameters, options) {
|
|
1051
|
+
return localVarFp.sendSystemCommand(requestParameters.sessionId, requestParameters.command, options).then((request) => request(axios, basePath));
|
|
1031
1052
|
},
|
|
1032
1053
|
};
|
|
1033
1054
|
};
|