@jellyfin/sdk 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/lib/api.d.ts +0 -11
- package/lib/api.js +0 -14
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.d.ts +9 -12
- package/lib/generated-client/api/activity-log-api.js +15 -18
- package/lib/generated-client/api/api-key-api.d.ts +18 -18
- package/lib/generated-client/api/api-key-api.js +40 -38
- package/lib/generated-client/api/artists-api.d.ts +27 -90
- package/lib/generated-client/api/artists-api.js +43 -104
- package/lib/generated-client/api/audio-api.d.ts +81 -249
- package/lib/generated-client/api/audio-api.js +105 -266
- package/lib/generated-client/api/branding-api.d.ts +16 -16
- package/lib/generated-client/api/branding-api.js +31 -29
- package/lib/generated-client/api/channels-api.d.ts +33 -51
- package/lib/generated-client/api/channels-api.js +68 -82
- package/lib/generated-client/api/client-log-api.d.ts +13 -13
- package/lib/generated-client/api/client-log-api.js +17 -17
- package/lib/generated-client/api/collection-api.d.ts +19 -24
- package/lib/generated-client/api/collection-api.js +43 -46
- package/lib/generated-client/api/configuration-api.d.ts +28 -29
- package/lib/generated-client/api/configuration-api.js +65 -62
- package/lib/generated-client/api/dashboard-api.d.ts +14 -14
- package/lib/generated-client/api/dashboard-api.js +28 -27
- package/lib/generated-client/api/devices-api.d.ts +31 -33
- package/lib/generated-client/api/devices-api.js +71 -68
- package/lib/generated-client/api/display-preferences-api.d.ts +14 -19
- package/lib/generated-client/api/display-preferences-api.js +29 -33
- package/lib/generated-client/api/dynamic-hls-api.d.ts +246 -607
- package/lib/generated-client/api/dynamic-hls-api.js +269 -628
- package/lib/generated-client/api/environment-api.d.ts +33 -35
- package/lib/generated-client/api/environment-api.js +76 -73
- package/lib/generated-client/api/filter-api.d.ts +17 -29
- package/lib/generated-client/api/filter-api.js +29 -40
- package/lib/generated-client/api/genres-api.d.ts +20 -38
- package/lib/generated-client/api/genres-api.js +29 -46
- package/lib/generated-client/api/hls-segment-api.d.ts +28 -35
- package/lib/generated-client/api/hls-segment-api.js +68 -71
- package/lib/generated-client/api/image-api.d.ts +206 -644
- package/lib/generated-client/api/image-api.js +501 -903
- package/lib/generated-client/api/instant-mix-api.d.ts +46 -102
- package/lib/generated-client/api/instant-mix-api.js +113 -162
- package/lib/generated-client/api/item-lookup-api.d.ts +69 -71
- package/lib/generated-client/api/item-lookup-api.js +155 -147
- package/lib/generated-client/api/item-refresh-api.d.ts +9 -13
- package/lib/generated-client/api/item-refresh-api.js +15 -19
- package/lib/generated-client/api/item-update-api.d.ts +20 -22
- package/lib/generated-client/api/item-update-api.js +43 -43
- package/lib/generated-client/api/items-api.d.ts +44 -137
- package/lib/generated-client/api/items-api.js +63 -156
- package/lib/generated-client/api/library-api.d.ts +185 -170
- package/lib/generated-client/api/library-api.js +378 -359
- package/lib/generated-client/api/library-structure-api.d.ts +48 -58
- package/lib/generated-client/api/library-structure-api.js +110 -113
- package/lib/generated-client/api/live-tv-api.d.ts +224 -332
- package/lib/generated-client/api/live-tv-api.js +558 -626
- package/lib/generated-client/api/localization-api.d.ts +23 -23
- package/lib/generated-client/api/localization-api.js +45 -42
- package/lib/generated-client/api/lyrics-api.d.ts +39 -42
- package/lib/generated-client/api/lyrics-api.js +87 -85
- package/lib/generated-client/api/media-info-api.d.ts +40 -59
- package/lib/generated-client/api/media-info-api.js +77 -95
- package/lib/generated-client/api/media-segments-api.d.ts +95 -0
- package/lib/generated-client/api/media-segments-api.js +123 -0
- package/lib/generated-client/api/movies-api.d.ts +10 -14
- package/lib/generated-client/api/movies-api.js +15 -19
- package/lib/generated-client/api/music-genres-api.d.ts +20 -38
- package/lib/generated-client/api/music-genres-api.js +29 -46
- package/lib/generated-client/api/package-api.d.ts +33 -37
- package/lib/generated-client/api/package-api.js +79 -78
- package/lib/generated-client/api/persons-api.d.ts +18 -31
- package/lib/generated-client/api/persons-api.js +29 -41
- package/lib/generated-client/api/playlists-api.d.ts +109 -84
- package/lib/generated-client/api/playlists-api.js +207 -154
- package/lib/generated-client/api/playstate-api.d.ts +54 -80
- package/lib/generated-client/api/playstate-api.js +127 -145
- package/lib/generated-client/api/plugins-api.d.ts +48 -52
- package/lib/generated-client/api/plugins-api.js +124 -120
- package/lib/generated-client/api/quick-connect-api.d.ts +22 -23
- package/lib/generated-client/api/quick-connect-api.js +48 -46
- package/lib/generated-client/api/remote-image-api.d.ts +21 -28
- package/lib/generated-client/api/remote-image-api.js +43 -48
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +30 -32
- package/lib/generated-client/api/scheduled-tasks-api.js +71 -69
- package/lib/generated-client/api/search-api.d.ts +11 -28
- package/lib/generated-client/api/search-api.js +15 -32
- package/lib/generated-client/api/session-api.d.ts +90 -117
- package/lib/generated-client/api/session-api.js +216 -228
- package/lib/generated-client/api/startup-api.d.ts +37 -37
- package/lib/generated-client/api/startup-api.js +87 -81
- package/lib/generated-client/api/studios-api.d.ts +18 -35
- package/lib/generated-client/api/studios-api.js +29 -45
- package/lib/generated-client/api/subtitle-api.d.ts +55 -86
- package/lib/generated-client/api/subtitle-api.js +136 -158
- package/lib/generated-client/api/suggestions-api.d.ts +11 -16
- package/lib/generated-client/api/suggestions-api.js +15 -20
- package/lib/generated-client/api/sync-play-api.d.ts +120 -120
- package/lib/generated-client/api/sync-play-api.js +280 -260
- package/lib/generated-client/api/system-api.d.ts +49 -49
- package/lib/generated-client/api/system-api.js +111 -102
- package/lib/generated-client/api/time-sync-api.d.ts +8 -8
- package/lib/generated-client/api/time-sync-api.js +11 -11
- package/lib/generated-client/api/tmdb-api.d.ts +8 -8
- package/lib/generated-client/api/tmdb-api.js +12 -12
- package/lib/generated-client/api/trailers-api.d.ts +19 -102
- package/lib/generated-client/api/trailers-api.js +15 -98
- package/lib/generated-client/api/trickplay-api.d.ts +13 -18
- package/lib/generated-client/api/trickplay-api.js +29 -33
- package/lib/generated-client/api/tv-shows-api.d.ts +27 -72
- package/lib/generated-client/api/tv-shows-api.js +57 -99
- package/lib/generated-client/api/universal-audio-api.d.ts +30 -48
- package/lib/generated-client/api/universal-audio-api.js +41 -64
- package/lib/generated-client/api/user-api.d.ts +83 -88
- package/lib/generated-client/api/user-api.js +186 -178
- package/lib/generated-client/api/user-library-api.d.ts +59 -78
- package/lib/generated-client/api/user-library-api.js +141 -151
- package/lib/generated-client/api/user-views-api.d.ts +16 -19
- package/lib/generated-client/api/user-views-api.js +29 -31
- package/lib/generated-client/api/video-attachments-api.d.ts +8 -10
- package/lib/generated-client/api/video-attachments-api.js +14 -16
- package/lib/generated-client/api/videos-api.d.ts +97 -274
- package/lib/generated-client/api/videos-api.js +147 -314
- package/lib/generated-client/api/years-api.d.ts +21 -36
- package/lib/generated-client/api/years-api.js +29 -43
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/base.d.ts +15 -4
- package/lib/generated-client/base.js +8 -4
- package/lib/generated-client/common.d.ts +3 -3
- package/lib/generated-client/common.js +30 -24
- package/lib/generated-client/configuration.d.ts +8 -0
- package/lib/generated-client/configuration.js +1 -0
- package/lib/generated-client/index.js +8 -1
- package/lib/generated-client/models/access-schedule.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-message.d.ts +2 -2
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +1 -1
- package/lib/generated-client/models/activity-log-entry.d.ts +1 -1
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/album-info.d.ts +5 -5
- package/lib/generated-client/models/all-theme-media-result.d.ts +1 -1
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/artist-info.d.ts +3 -3
- package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/authentication-result.d.ts +7 -7
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +26 -26
- package/lib/generated-client/models/base-item-person.d.ts +2 -2
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/book-info.d.ts +2 -2
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/box-set-info.d.ts +2 -2
- package/lib/generated-client/models/channel-features.d.ts +3 -3
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +3 -3
- package/lib/generated-client/models/client-capabilities-dto.d.ts +3 -17
- package/lib/generated-client/models/client-capabilities.d.ts +3 -3
- package/lib/generated-client/models/codec-profile.d.ts +15 -9
- package/lib/generated-client/models/container-profile.d.ts +12 -6
- package/lib/generated-client/models/create-playlist-dto.d.ts +2 -2
- package/lib/generated-client/models/deinterlace-method.d.ts +20 -0
- package/lib/generated-client/models/{hardware-encoding-type.js → deinterlace-method.js} +5 -10
- package/lib/generated-client/models/device-info-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/device-info-dto.d.ts +84 -0
- package/lib/generated-client/models/device-info-query-result.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +1 -1
- package/lib/generated-client/models/device-profile.d.ts +8 -8
- package/lib/generated-client/models/direct-play-profile.d.ts +6 -6
- package/lib/generated-client/models/display-preferences-dto.d.ts +4 -4
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +3 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +4 -2
- package/lib/generated-client/models/encoder-preset.d.ts +29 -0
- package/lib/generated-client/models/encoder-preset.js +32 -0
- package/lib/generated-client/models/encoding-options.d.ts +43 -19
- package/lib/generated-client/models/external-id-info.d.ts +2 -1
- package/lib/generated-client/models/file-system-entry-info.d.ts +1 -1
- package/lib/generated-client/models/force-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-result.d.ts +1 -1
- package/lib/generated-client/models/general-command-message.d.ts +2 -2
- package/lib/generated-client/models/general-command.d.ts +3 -3
- package/lib/generated-client/models/get-programs-dto.d.ts +34 -34
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-info-dto.d.ts +1 -1
- package/lib/generated-client/models/group-state-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/group-state-update.d.ts +2 -2
- package/lib/generated-client/models/group-update.d.ts +23 -5
- package/lib/generated-client/models/hardware-acceleration-type.d.ts +26 -0
- package/lib/generated-client/models/hardware-acceleration-type.js +29 -0
- package/lib/generated-client/models/image-info.d.ts +1 -1
- package/lib/generated-client/models/image-option.d.ts +1 -1
- package/lib/generated-client/models/image-provider-info.d.ts +1 -1
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +22 -8
- package/lib/generated-client/models/index.d.ts +13 -6
- package/lib/generated-client/models/index.js +7 -1
- package/lib/generated-client/models/installation-info.d.ts +1 -1
- package/lib/generated-client/models/library-changed-message.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +8 -2
- package/lib/generated-client/models/library-options.d.ts +57 -3
- package/lib/generated-client/models/library-type-options-dto.d.ts +3 -3
- package/lib/generated-client/models/listings-provider-info.d.ts +1 -1
- package/lib/generated-client/models/live-stream-response.d.ts +1 -1
- package/lib/generated-client/models/live-tv-info.d.ts +1 -1
- package/lib/generated-client/models/live-tv-options.d.ts +2 -2
- package/lib/generated-client/models/live-tv-service-info.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +2 -2
- package/lib/generated-client/models/media-path-dto.d.ts +1 -1
- package/lib/generated-client/models/media-path-info.d.ts +0 -6
- package/lib/generated-client/models/media-segment-dto-query-result.d.ts +36 -0
- package/lib/generated-client/models/media-segment-dto.d.ts +48 -0
- package/lib/generated-client/models/media-segment-type.d.ts +24 -0
- package/lib/generated-client/models/media-segment-type.js +27 -0
- package/lib/generated-client/models/media-source-info.d.ts +29 -11
- package/lib/generated-client/models/media-stream.d.ts +17 -5
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/movie-info.d.ts +2 -2
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/music-video-info.d.ts +2 -2
- package/lib/generated-client/models/open-live-stream-dto.d.ts +8 -2
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +85 -29
- package/lib/generated-client/models/package-info.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/person-lookup-info.d.ts +2 -2
- package/lib/generated-client/models/play-message.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +2 -2
- package/lib/generated-client/models/play-queue-update.d.ts +4 -4
- package/lib/generated-client/models/play-request.d.ts +1 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +7 -1
- package/lib/generated-client/models/playback-info-response.d.ts +2 -2
- package/lib/generated-client/models/playback-progress-info.d.ts +5 -5
- package/lib/generated-client/models/playback-start-info.d.ts +5 -5
- package/lib/generated-client/models/playback-stop-info.d.ts +2 -2
- package/lib/generated-client/models/player-state-info.d.ts +3 -3
- package/lib/generated-client/models/playlist-dto.d.ts +36 -0
- package/lib/generated-client/models/playstate-message.d.ts +2 -2
- package/lib/generated-client/models/playstate-request.d.ts +1 -1
- package/lib/generated-client/models/plugin-info.d.ts +1 -1
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-installing-message.d.ts +2 -2
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +2 -2
- package/lib/generated-client/models/problem-details.d.ts +1 -1
- package/lib/generated-client/models/profile-condition.d.ts +2 -2
- package/lib/generated-client/models/query-filters.d.ts +1 -1
- package/lib/generated-client/models/queue-request-dto.d.ts +1 -1
- package/lib/generated-client/models/recommendation-dto.d.ts +2 -2
- package/lib/generated-client/models/refresh-progress-message.d.ts +3 -3
- package/lib/generated-client/models/remote-image-info.d.ts +2 -2
- package/lib/generated-client/models/remote-image-result.d.ts +1 -1
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +1 -1
- package/lib/generated-client/models/remote-search-result.d.ts +2 -2
- package/lib/generated-client/models/restart-required-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +2 -2
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +1 -1
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +1 -1
- package/lib/generated-client/models/search-hint-result.d.ts +1 -1
- package/lib/generated-client/models/search-hint.d.ts +3 -3
- package/lib/generated-client/models/send-command.d.ts +1 -1
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/series-info.d.ts +2 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/series-timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/series-timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/server-configuration.d.ts +8 -14
- package/lib/generated-client/models/server-restarting-message.d.ts +1 -1
- package/lib/generated-client/models/server-shutting-down-message.d.ts +1 -1
- package/lib/generated-client/models/session-info-dto.d.ts +199 -0
- package/lib/generated-client/models/session-info.d.ts +8 -8
- package/lib/generated-client/models/sessions-message.d.ts +4 -4
- package/lib/generated-client/models/sessions-start-message.d.ts +1 -1
- package/lib/generated-client/models/sessions-stop-message.d.ts +1 -1
- package/lib/generated-client/models/set-repeat-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/set-shuffle-mode-request-dto.d.ts +1 -1
- package/lib/generated-client/models/song-info.d.ts +2 -2
- package/lib/generated-client/models/string-group-update.d.ts +1 -1
- package/lib/generated-client/models/subtitle-profile.d.ts +6 -6
- package/lib/generated-client/models/sync-play-command-message.d.ts +2 -2
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +2 -2
- package/lib/generated-client/models/system-info.d.ts +2 -2
- package/lib/generated-client/models/task-info.d.ts +3 -3
- package/lib/generated-client/models/task-result.d.ts +1 -1
- package/lib/generated-client/models/task-trigger-info.d.ts +1 -1
- package/lib/generated-client/models/theme-media-result.d.ts +2 -2
- package/lib/generated-client/models/timer-cancelled-message.d.ts +2 -2
- package/lib/generated-client/models/timer-created-message.d.ts +2 -2
- package/lib/generated-client/models/timer-info-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/timer-info-dto.d.ts +3 -3
- package/lib/generated-client/models/tonemapping-algorithm.d.ts +26 -0
- package/lib/generated-client/models/tonemapping-algorithm.js +29 -0
- package/lib/generated-client/models/tonemapping-mode.d.ts +23 -0
- package/lib/generated-client/models/tonemapping-mode.js +26 -0
- package/lib/generated-client/models/tonemapping-range.d.ts +21 -0
- package/lib/generated-client/models/tonemapping-range.js +24 -0
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +1 -1
- package/lib/generated-client/models/trailer-info.d.ts +2 -2
- package/lib/generated-client/models/transcode-reason.d.ts +1 -0
- package/lib/generated-client/models/transcode-reason.js +2 -1
- package/lib/generated-client/models/transcoding-info.d.ts +16 -16
- package/lib/generated-client/models/transcoding-profile.d.ts +24 -18
- package/lib/generated-client/models/trickplay-options.d.ts +8 -2
- package/lib/generated-client/models/tuner-host-info.d.ts +18 -0
- package/lib/generated-client/models/type-options.d.ts +1 -1
- package/lib/generated-client/models/update-library-options-dto.d.ts +1 -1
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +1 -1
- package/lib/generated-client/models/update-playlist-dto.d.ts +1 -1
- package/lib/generated-client/models/user-configuration.d.ts +1 -1
- package/lib/generated-client/models/user-data-change-info.d.ts +3 -3
- package/lib/generated-client/models/user-data-changed-message.d.ts +2 -2
- package/lib/generated-client/models/user-deleted-message.d.ts +1 -1
- package/lib/generated-client/models/user-dto.d.ts +2 -2
- package/lib/generated-client/models/user-item-data-dto.d.ts +2 -2
- package/lib/generated-client/models/user-policy.d.ts +3 -3
- package/lib/generated-client/models/user-updated-message.d.ts +2 -2
- package/lib/generated-client/models/virtual-folder-info.d.ts +2 -2
- package/lib/generated-client/models/web-socket-message.d.ts +2 -2
- package/lib/utils/address-candidates.js +15 -10
- package/lib/utils/api/image-urls-api.js +16 -4
- package/lib/utils/api/index.d.ts +1 -0
- package/lib/utils/api/index.js +1 -0
- package/lib/utils/api/media-segments-api.d.ts +8 -0
- package/lib/utils/api/media-segments-api.js +12 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/url/index.d.ts +16 -3
- package/lib/utils/url/index.js +26 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +13 -12
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
|
-
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
3
|
+
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
7
6
|
/* eslint-disable */
|
|
@@ -30,7 +29,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
30
29
|
* @param {*} [options] Override http request option.
|
|
31
30
|
* @throws {RequiredError}
|
|
32
31
|
*/
|
|
33
|
-
markPlayedItem:
|
|
32
|
+
markPlayedItem: async (itemId, userId, datePlayed, options = {}) => {
|
|
34
33
|
// verify required parameter 'itemId' is not null or undefined
|
|
35
34
|
assertParamExists('markPlayedItem', 'itemId', itemId);
|
|
36
35
|
const localVarPath = `/UserPlayedItems/{itemId}`
|
|
@@ -41,11 +40,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
41
40
|
if (configuration) {
|
|
42
41
|
baseOptions = configuration.baseOptions;
|
|
43
42
|
}
|
|
44
|
-
const localVarRequestOptions =
|
|
43
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
45
44
|
const localVarHeaderParameter = {};
|
|
46
45
|
const localVarQueryParameter = {};
|
|
47
46
|
// authentication CustomAuthentication required
|
|
48
|
-
|
|
47
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
49
48
|
if (userId !== undefined) {
|
|
50
49
|
localVarQueryParameter['userId'] = userId;
|
|
51
50
|
}
|
|
@@ -56,12 +55,12 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
56
55
|
}
|
|
57
56
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58
57
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
|
-
localVarRequestOptions.headers =
|
|
58
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
60
59
|
return {
|
|
61
60
|
url: toPathString(localVarUrlObj),
|
|
62
61
|
options: localVarRequestOptions,
|
|
63
62
|
};
|
|
64
|
-
}
|
|
63
|
+
},
|
|
65
64
|
/**
|
|
66
65
|
*
|
|
67
66
|
* @summary Marks an item as unplayed for user.
|
|
@@ -70,7 +69,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
70
69
|
* @param {*} [options] Override http request option.
|
|
71
70
|
* @throws {RequiredError}
|
|
72
71
|
*/
|
|
73
|
-
markUnplayedItem:
|
|
72
|
+
markUnplayedItem: async (itemId, userId, options = {}) => {
|
|
74
73
|
// verify required parameter 'itemId' is not null or undefined
|
|
75
74
|
assertParamExists('markUnplayedItem', 'itemId', itemId);
|
|
76
75
|
const localVarPath = `/UserPlayedItems/{itemId}`
|
|
@@ -81,22 +80,22 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
81
80
|
if (configuration) {
|
|
82
81
|
baseOptions = configuration.baseOptions;
|
|
83
82
|
}
|
|
84
|
-
const localVarRequestOptions =
|
|
83
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
85
84
|
const localVarHeaderParameter = {};
|
|
86
85
|
const localVarQueryParameter = {};
|
|
87
86
|
// authentication CustomAuthentication required
|
|
88
|
-
|
|
87
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
89
88
|
if (userId !== undefined) {
|
|
90
89
|
localVarQueryParameter['userId'] = userId;
|
|
91
90
|
}
|
|
92
91
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
93
92
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
|
-
localVarRequestOptions.headers =
|
|
93
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
95
94
|
return {
|
|
96
95
|
url: toPathString(localVarUrlObj),
|
|
97
96
|
options: localVarRequestOptions,
|
|
98
97
|
};
|
|
99
|
-
}
|
|
98
|
+
},
|
|
100
99
|
/**
|
|
101
100
|
*
|
|
102
101
|
* @summary Reports a session\'s playback progress.
|
|
@@ -115,7 +114,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
115
114
|
* @param {*} [options] Override http request option.
|
|
116
115
|
* @throws {RequiredError}
|
|
117
116
|
*/
|
|
118
|
-
onPlaybackProgress:
|
|
117
|
+
onPlaybackProgress: async (itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options = {}) => {
|
|
119
118
|
// verify required parameter 'itemId' is not null or undefined
|
|
120
119
|
assertParamExists('onPlaybackProgress', 'itemId', itemId);
|
|
121
120
|
const localVarPath = `/PlayingItems/{itemId}/Progress`
|
|
@@ -126,11 +125,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
126
125
|
if (configuration) {
|
|
127
126
|
baseOptions = configuration.baseOptions;
|
|
128
127
|
}
|
|
129
|
-
const localVarRequestOptions =
|
|
128
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
130
129
|
const localVarHeaderParameter = {};
|
|
131
130
|
const localVarQueryParameter = {};
|
|
132
131
|
// authentication CustomAuthentication required
|
|
133
|
-
|
|
132
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
134
133
|
if (mediaSourceId !== undefined) {
|
|
135
134
|
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
136
135
|
}
|
|
@@ -166,12 +165,12 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
166
165
|
}
|
|
167
166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
168
167
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
|
-
localVarRequestOptions.headers =
|
|
168
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
170
169
|
return {
|
|
171
170
|
url: toPathString(localVarUrlObj),
|
|
172
171
|
options: localVarRequestOptions,
|
|
173
172
|
};
|
|
174
|
-
}
|
|
173
|
+
},
|
|
175
174
|
/**
|
|
176
175
|
*
|
|
177
176
|
* @summary Reports that a session has begun playing an item.
|
|
@@ -186,7 +185,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
186
185
|
* @param {*} [options] Override http request option.
|
|
187
186
|
* @throws {RequiredError}
|
|
188
187
|
*/
|
|
189
|
-
onPlaybackStart:
|
|
188
|
+
onPlaybackStart: async (itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options = {}) => {
|
|
190
189
|
// verify required parameter 'itemId' is not null or undefined
|
|
191
190
|
assertParamExists('onPlaybackStart', 'itemId', itemId);
|
|
192
191
|
const localVarPath = `/PlayingItems/{itemId}`
|
|
@@ -197,11 +196,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
197
196
|
if (configuration) {
|
|
198
197
|
baseOptions = configuration.baseOptions;
|
|
199
198
|
}
|
|
200
|
-
const localVarRequestOptions =
|
|
199
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
201
200
|
const localVarHeaderParameter = {};
|
|
202
201
|
const localVarQueryParameter = {};
|
|
203
202
|
// authentication CustomAuthentication required
|
|
204
|
-
|
|
203
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
205
204
|
if (mediaSourceId !== undefined) {
|
|
206
205
|
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
207
206
|
}
|
|
@@ -225,12 +224,12 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
225
224
|
}
|
|
226
225
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
227
226
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
228
|
-
localVarRequestOptions.headers =
|
|
227
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
229
228
|
return {
|
|
230
229
|
url: toPathString(localVarUrlObj),
|
|
231
230
|
options: localVarRequestOptions,
|
|
232
231
|
};
|
|
233
|
-
}
|
|
232
|
+
},
|
|
234
233
|
/**
|
|
235
234
|
*
|
|
236
235
|
* @summary Reports that a session has stopped playing an item.
|
|
@@ -243,7 +242,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
243
242
|
* @param {*} [options] Override http request option.
|
|
244
243
|
* @throws {RequiredError}
|
|
245
244
|
*/
|
|
246
|
-
onPlaybackStopped:
|
|
245
|
+
onPlaybackStopped: async (itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options = {}) => {
|
|
247
246
|
// verify required parameter 'itemId' is not null or undefined
|
|
248
247
|
assertParamExists('onPlaybackStopped', 'itemId', itemId);
|
|
249
248
|
const localVarPath = `/PlayingItems/{itemId}`
|
|
@@ -254,11 +253,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
254
253
|
if (configuration) {
|
|
255
254
|
baseOptions = configuration.baseOptions;
|
|
256
255
|
}
|
|
257
|
-
const localVarRequestOptions =
|
|
256
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
258
257
|
const localVarHeaderParameter = {};
|
|
259
258
|
const localVarQueryParameter = {};
|
|
260
259
|
// authentication CustomAuthentication required
|
|
261
|
-
|
|
260
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
262
261
|
if (mediaSourceId !== undefined) {
|
|
263
262
|
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
264
263
|
}
|
|
@@ -276,12 +275,12 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
276
275
|
}
|
|
277
276
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
278
277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
-
localVarRequestOptions.headers =
|
|
278
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
280
279
|
return {
|
|
281
280
|
url: toPathString(localVarUrlObj),
|
|
282
281
|
options: localVarRequestOptions,
|
|
283
282
|
};
|
|
284
|
-
}
|
|
283
|
+
},
|
|
285
284
|
/**
|
|
286
285
|
*
|
|
287
286
|
* @summary Pings a playback session.
|
|
@@ -289,7 +288,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
289
288
|
* @param {*} [options] Override http request option.
|
|
290
289
|
* @throws {RequiredError}
|
|
291
290
|
*/
|
|
292
|
-
pingPlaybackSession:
|
|
291
|
+
pingPlaybackSession: async (playSessionId, options = {}) => {
|
|
293
292
|
// verify required parameter 'playSessionId' is not null or undefined
|
|
294
293
|
assertParamExists('pingPlaybackSession', 'playSessionId', playSessionId);
|
|
295
294
|
const localVarPath = `/Sessions/Playing/Ping`;
|
|
@@ -299,22 +298,22 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
299
298
|
if (configuration) {
|
|
300
299
|
baseOptions = configuration.baseOptions;
|
|
301
300
|
}
|
|
302
|
-
const localVarRequestOptions =
|
|
301
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
303
302
|
const localVarHeaderParameter = {};
|
|
304
303
|
const localVarQueryParameter = {};
|
|
305
304
|
// authentication CustomAuthentication required
|
|
306
|
-
|
|
305
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
307
306
|
if (playSessionId !== undefined) {
|
|
308
307
|
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
309
308
|
}
|
|
310
309
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
311
310
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
-
localVarRequestOptions.headers =
|
|
311
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
313
312
|
return {
|
|
314
313
|
url: toPathString(localVarUrlObj),
|
|
315
314
|
options: localVarRequestOptions,
|
|
316
315
|
};
|
|
317
|
-
}
|
|
316
|
+
},
|
|
318
317
|
/**
|
|
319
318
|
*
|
|
320
319
|
* @summary Reports playback progress within a session.
|
|
@@ -322,7 +321,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
322
321
|
* @param {*} [options] Override http request option.
|
|
323
322
|
* @throws {RequiredError}
|
|
324
323
|
*/
|
|
325
|
-
reportPlaybackProgress:
|
|
324
|
+
reportPlaybackProgress: async (playbackProgressInfo, options = {}) => {
|
|
326
325
|
const localVarPath = `/Sessions/Playing/Progress`;
|
|
327
326
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
328
327
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -330,21 +329,21 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
330
329
|
if (configuration) {
|
|
331
330
|
baseOptions = configuration.baseOptions;
|
|
332
331
|
}
|
|
333
|
-
const localVarRequestOptions =
|
|
332
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
334
333
|
const localVarHeaderParameter = {};
|
|
335
334
|
const localVarQueryParameter = {};
|
|
336
335
|
// authentication CustomAuthentication required
|
|
337
|
-
|
|
336
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
338
337
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
339
338
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
340
339
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
341
|
-
localVarRequestOptions.headers =
|
|
340
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
342
341
|
localVarRequestOptions.data = serializeDataIfNeeded(playbackProgressInfo, localVarRequestOptions, configuration);
|
|
343
342
|
return {
|
|
344
343
|
url: toPathString(localVarUrlObj),
|
|
345
344
|
options: localVarRequestOptions,
|
|
346
345
|
};
|
|
347
|
-
}
|
|
346
|
+
},
|
|
348
347
|
/**
|
|
349
348
|
*
|
|
350
349
|
* @summary Reports playback has started within a session.
|
|
@@ -352,7 +351,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
352
351
|
* @param {*} [options] Override http request option.
|
|
353
352
|
* @throws {RequiredError}
|
|
354
353
|
*/
|
|
355
|
-
reportPlaybackStart:
|
|
354
|
+
reportPlaybackStart: async (playbackStartInfo, options = {}) => {
|
|
356
355
|
const localVarPath = `/Sessions/Playing`;
|
|
357
356
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
358
357
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -360,21 +359,21 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
360
359
|
if (configuration) {
|
|
361
360
|
baseOptions = configuration.baseOptions;
|
|
362
361
|
}
|
|
363
|
-
const localVarRequestOptions =
|
|
362
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
364
363
|
const localVarHeaderParameter = {};
|
|
365
364
|
const localVarQueryParameter = {};
|
|
366
365
|
// authentication CustomAuthentication required
|
|
367
|
-
|
|
366
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
368
367
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
369
368
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
370
369
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
371
|
-
localVarRequestOptions.headers =
|
|
370
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
372
371
|
localVarRequestOptions.data = serializeDataIfNeeded(playbackStartInfo, localVarRequestOptions, configuration);
|
|
373
372
|
return {
|
|
374
373
|
url: toPathString(localVarUrlObj),
|
|
375
374
|
options: localVarRequestOptions,
|
|
376
375
|
};
|
|
377
|
-
}
|
|
376
|
+
},
|
|
378
377
|
/**
|
|
379
378
|
*
|
|
380
379
|
* @summary Reports playback has stopped within a session.
|
|
@@ -382,7 +381,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
382
381
|
* @param {*} [options] Override http request option.
|
|
383
382
|
* @throws {RequiredError}
|
|
384
383
|
*/
|
|
385
|
-
reportPlaybackStopped:
|
|
384
|
+
reportPlaybackStopped: async (playbackStopInfo, options = {}) => {
|
|
386
385
|
const localVarPath = `/Sessions/Playing/Stopped`;
|
|
387
386
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
388
387
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -390,21 +389,21 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
390
389
|
if (configuration) {
|
|
391
390
|
baseOptions = configuration.baseOptions;
|
|
392
391
|
}
|
|
393
|
-
const localVarRequestOptions =
|
|
392
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
394
393
|
const localVarHeaderParameter = {};
|
|
395
394
|
const localVarQueryParameter = {};
|
|
396
395
|
// authentication CustomAuthentication required
|
|
397
|
-
|
|
396
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
398
397
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
399
398
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
400
399
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
401
|
-
localVarRequestOptions.headers =
|
|
400
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
402
401
|
localVarRequestOptions.data = serializeDataIfNeeded(playbackStopInfo, localVarRequestOptions, configuration);
|
|
403
402
|
return {
|
|
404
403
|
url: toPathString(localVarUrlObj),
|
|
405
404
|
options: localVarRequestOptions,
|
|
406
405
|
};
|
|
407
|
-
}
|
|
406
|
+
},
|
|
408
407
|
};
|
|
409
408
|
};
|
|
410
409
|
/**
|
|
@@ -423,11 +422,12 @@ const PlaystateApiFp = function (configuration) {
|
|
|
423
422
|
* @param {*} [options] Override http request option.
|
|
424
423
|
* @throws {RequiredError}
|
|
425
424
|
*/
|
|
426
|
-
markPlayedItem(itemId, userId, datePlayed, options) {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
425
|
+
async markPlayedItem(itemId, userId, datePlayed, options) {
|
|
426
|
+
var _a, _b, _c;
|
|
427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markPlayedItem(itemId, userId, datePlayed, options);
|
|
428
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
429
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.markPlayedItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
430
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
431
431
|
},
|
|
432
432
|
/**
|
|
433
433
|
*
|
|
@@ -437,11 +437,12 @@ const PlaystateApiFp = function (configuration) {
|
|
|
437
437
|
* @param {*} [options] Override http request option.
|
|
438
438
|
* @throws {RequiredError}
|
|
439
439
|
*/
|
|
440
|
-
markUnplayedItem(itemId, userId, options) {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
440
|
+
async markUnplayedItem(itemId, userId, options) {
|
|
441
|
+
var _a, _b, _c;
|
|
442
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markUnplayedItem(itemId, userId, options);
|
|
443
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
444
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.markUnplayedItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
445
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
445
446
|
},
|
|
446
447
|
/**
|
|
447
448
|
*
|
|
@@ -461,11 +462,12 @@ const PlaystateApiFp = function (configuration) {
|
|
|
461
462
|
* @param {*} [options] Override http request option.
|
|
462
463
|
* @throws {RequiredError}
|
|
463
464
|
*/
|
|
464
|
-
onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
465
|
+
async onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options) {
|
|
466
|
+
var _a, _b, _c;
|
|
467
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options);
|
|
468
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
469
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.onPlaybackProgress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
470
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
469
471
|
},
|
|
470
472
|
/**
|
|
471
473
|
*
|
|
@@ -481,11 +483,12 @@ const PlaystateApiFp = function (configuration) {
|
|
|
481
483
|
* @param {*} [options] Override http request option.
|
|
482
484
|
* @throws {RequiredError}
|
|
483
485
|
*/
|
|
484
|
-
onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options) {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
486
|
+
async onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options) {
|
|
487
|
+
var _a, _b, _c;
|
|
488
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options);
|
|
489
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
490
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.onPlaybackStart']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
491
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
489
492
|
},
|
|
490
493
|
/**
|
|
491
494
|
*
|
|
@@ -499,11 +502,12 @@ const PlaystateApiFp = function (configuration) {
|
|
|
499
502
|
* @param {*} [options] Override http request option.
|
|
500
503
|
* @throws {RequiredError}
|
|
501
504
|
*/
|
|
502
|
-
onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options) {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
505
|
+
async onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options) {
|
|
506
|
+
var _a, _b, _c;
|
|
507
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options);
|
|
508
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
509
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.onPlaybackStopped']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
510
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
507
511
|
},
|
|
508
512
|
/**
|
|
509
513
|
*
|
|
@@ -512,11 +516,12 @@ const PlaystateApiFp = function (configuration) {
|
|
|
512
516
|
* @param {*} [options] Override http request option.
|
|
513
517
|
* @throws {RequiredError}
|
|
514
518
|
*/
|
|
515
|
-
pingPlaybackSession(playSessionId, options) {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
519
|
+
async pingPlaybackSession(playSessionId, options) {
|
|
520
|
+
var _a, _b, _c;
|
|
521
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pingPlaybackSession(playSessionId, options);
|
|
522
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
523
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.pingPlaybackSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
524
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
520
525
|
},
|
|
521
526
|
/**
|
|
522
527
|
*
|
|
@@ -525,11 +530,12 @@ const PlaystateApiFp = function (configuration) {
|
|
|
525
530
|
* @param {*} [options] Override http request option.
|
|
526
531
|
* @throws {RequiredError}
|
|
527
532
|
*/
|
|
528
|
-
reportPlaybackProgress(playbackProgressInfo, options) {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
+
async reportPlaybackProgress(playbackProgressInfo, options) {
|
|
534
|
+
var _a, _b, _c;
|
|
535
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportPlaybackProgress(playbackProgressInfo, options);
|
|
536
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
537
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.reportPlaybackProgress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
538
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
533
539
|
},
|
|
534
540
|
/**
|
|
535
541
|
*
|
|
@@ -538,11 +544,12 @@ const PlaystateApiFp = function (configuration) {
|
|
|
538
544
|
* @param {*} [options] Override http request option.
|
|
539
545
|
* @throws {RequiredError}
|
|
540
546
|
*/
|
|
541
|
-
reportPlaybackStart(playbackStartInfo, options) {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
547
|
+
async reportPlaybackStart(playbackStartInfo, options) {
|
|
548
|
+
var _a, _b, _c;
|
|
549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportPlaybackStart(playbackStartInfo, options);
|
|
550
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
551
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.reportPlaybackStart']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
552
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
546
553
|
},
|
|
547
554
|
/**
|
|
548
555
|
*
|
|
@@ -551,11 +558,12 @@ const PlaystateApiFp = function (configuration) {
|
|
|
551
558
|
* @param {*} [options] Override http request option.
|
|
552
559
|
* @throws {RequiredError}
|
|
553
560
|
*/
|
|
554
|
-
reportPlaybackStopped(playbackStopInfo, options) {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
561
|
+
async reportPlaybackStopped(playbackStopInfo, options) {
|
|
562
|
+
var _a, _b, _c;
|
|
563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportPlaybackStopped(playbackStopInfo, options);
|
|
564
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
565
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlaystateApi.reportPlaybackStopped']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
566
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
559
567
|
},
|
|
560
568
|
};
|
|
561
569
|
};
|
|
@@ -569,118 +577,92 @@ const PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
569
577
|
/**
|
|
570
578
|
*
|
|
571
579
|
* @summary Marks an item as played for user.
|
|
572
|
-
* @param {
|
|
573
|
-
* @param {string} [userId] User id.
|
|
574
|
-
* @param {string} [datePlayed] Optional. The date the item was played.
|
|
580
|
+
* @param {PlaystateApiMarkPlayedItemRequest} requestParameters Request parameters.
|
|
575
581
|
* @param {*} [options] Override http request option.
|
|
576
582
|
* @throws {RequiredError}
|
|
577
583
|
*/
|
|
578
|
-
markPlayedItem(
|
|
579
|
-
return localVarFp.markPlayedItem(itemId, userId, datePlayed, options).then((request) => request(axios, basePath));
|
|
584
|
+
markPlayedItem(requestParameters, options) {
|
|
585
|
+
return localVarFp.markPlayedItem(requestParameters.itemId, requestParameters.userId, requestParameters.datePlayed, options).then((request) => request(axios, basePath));
|
|
580
586
|
},
|
|
581
587
|
/**
|
|
582
588
|
*
|
|
583
589
|
* @summary Marks an item as unplayed for user.
|
|
584
|
-
* @param {
|
|
585
|
-
* @param {string} [userId] User id.
|
|
590
|
+
* @param {PlaystateApiMarkUnplayedItemRequest} requestParameters Request parameters.
|
|
586
591
|
* @param {*} [options] Override http request option.
|
|
587
592
|
* @throws {RequiredError}
|
|
588
593
|
*/
|
|
589
|
-
markUnplayedItem(
|
|
590
|
-
return localVarFp.markUnplayedItem(itemId, userId, options).then((request) => request(axios, basePath));
|
|
594
|
+
markUnplayedItem(requestParameters, options) {
|
|
595
|
+
return localVarFp.markUnplayedItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
591
596
|
},
|
|
592
597
|
/**
|
|
593
598
|
*
|
|
594
599
|
* @summary Reports a session\'s playback progress.
|
|
595
|
-
* @param {
|
|
596
|
-
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
597
|
-
* @param {number} [positionTicks] Optional. The current position, in ticks. 1 tick = 10000 ms.
|
|
598
|
-
* @param {number} [audioStreamIndex] The audio stream index.
|
|
599
|
-
* @param {number} [subtitleStreamIndex] The subtitle stream index.
|
|
600
|
-
* @param {number} [volumeLevel] Scale of 0-100.
|
|
601
|
-
* @param {PlayMethod} [playMethod] The play method.
|
|
602
|
-
* @param {string} [liveStreamId] The live stream id.
|
|
603
|
-
* @param {string} [playSessionId] The play session id.
|
|
604
|
-
* @param {RepeatMode} [repeatMode] The repeat mode.
|
|
605
|
-
* @param {boolean} [isPaused] Indicates if the player is paused.
|
|
606
|
-
* @param {boolean} [isMuted] Indicates if the player is muted.
|
|
600
|
+
* @param {PlaystateApiOnPlaybackProgressRequest} requestParameters Request parameters.
|
|
607
601
|
* @param {*} [options] Override http request option.
|
|
608
602
|
* @throws {RequiredError}
|
|
609
603
|
*/
|
|
610
|
-
onPlaybackProgress(
|
|
611
|
-
return localVarFp.onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options).then((request) => request(axios, basePath));
|
|
604
|
+
onPlaybackProgress(requestParameters, options) {
|
|
605
|
+
return localVarFp.onPlaybackProgress(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.positionTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.volumeLevel, requestParameters.playMethod, requestParameters.liveStreamId, requestParameters.playSessionId, requestParameters.repeatMode, requestParameters.isPaused, requestParameters.isMuted, options).then((request) => request(axios, basePath));
|
|
612
606
|
},
|
|
613
607
|
/**
|
|
614
608
|
*
|
|
615
609
|
* @summary Reports that a session has begun playing an item.
|
|
616
|
-
* @param {
|
|
617
|
-
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
618
|
-
* @param {number} [audioStreamIndex] The audio stream index.
|
|
619
|
-
* @param {number} [subtitleStreamIndex] The subtitle stream index.
|
|
620
|
-
* @param {PlayMethod} [playMethod] The play method.
|
|
621
|
-
* @param {string} [liveStreamId] The live stream id.
|
|
622
|
-
* @param {string} [playSessionId] The play session id.
|
|
623
|
-
* @param {boolean} [canSeek] Indicates if the client can seek.
|
|
610
|
+
* @param {PlaystateApiOnPlaybackStartRequest} requestParameters Request parameters.
|
|
624
611
|
* @param {*} [options] Override http request option.
|
|
625
612
|
* @throws {RequiredError}
|
|
626
613
|
*/
|
|
627
|
-
onPlaybackStart(
|
|
628
|
-
return localVarFp.onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options).then((request) => request(axios, basePath));
|
|
614
|
+
onPlaybackStart(requestParameters, options) {
|
|
615
|
+
return localVarFp.onPlaybackStart(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.playMethod, requestParameters.liveStreamId, requestParameters.playSessionId, requestParameters.canSeek, options).then((request) => request(axios, basePath));
|
|
629
616
|
},
|
|
630
617
|
/**
|
|
631
618
|
*
|
|
632
619
|
* @summary Reports that a session has stopped playing an item.
|
|
633
|
-
* @param {
|
|
634
|
-
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
635
|
-
* @param {string} [nextMediaType] The next media type that will play.
|
|
636
|
-
* @param {number} [positionTicks] Optional. The position, in ticks, where playback stopped. 1 tick = 10000 ms.
|
|
637
|
-
* @param {string} [liveStreamId] The live stream id.
|
|
638
|
-
* @param {string} [playSessionId] The play session id.
|
|
620
|
+
* @param {PlaystateApiOnPlaybackStoppedRequest} requestParameters Request parameters.
|
|
639
621
|
* @param {*} [options] Override http request option.
|
|
640
622
|
* @throws {RequiredError}
|
|
641
623
|
*/
|
|
642
|
-
onPlaybackStopped(
|
|
643
|
-
return localVarFp.onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options).then((request) => request(axios, basePath));
|
|
624
|
+
onPlaybackStopped(requestParameters, options) {
|
|
625
|
+
return localVarFp.onPlaybackStopped(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.nextMediaType, requestParameters.positionTicks, requestParameters.liveStreamId, requestParameters.playSessionId, options).then((request) => request(axios, basePath));
|
|
644
626
|
},
|
|
645
627
|
/**
|
|
646
628
|
*
|
|
647
629
|
* @summary Pings a playback session.
|
|
648
|
-
* @param {
|
|
630
|
+
* @param {PlaystateApiPingPlaybackSessionRequest} requestParameters Request parameters.
|
|
649
631
|
* @param {*} [options] Override http request option.
|
|
650
632
|
* @throws {RequiredError}
|
|
651
633
|
*/
|
|
652
|
-
pingPlaybackSession(
|
|
653
|
-
return localVarFp.pingPlaybackSession(playSessionId, options).then((request) => request(axios, basePath));
|
|
634
|
+
pingPlaybackSession(requestParameters, options) {
|
|
635
|
+
return localVarFp.pingPlaybackSession(requestParameters.playSessionId, options).then((request) => request(axios, basePath));
|
|
654
636
|
},
|
|
655
637
|
/**
|
|
656
638
|
*
|
|
657
639
|
* @summary Reports playback progress within a session.
|
|
658
|
-
* @param {
|
|
640
|
+
* @param {PlaystateApiReportPlaybackProgressRequest} requestParameters Request parameters.
|
|
659
641
|
* @param {*} [options] Override http request option.
|
|
660
642
|
* @throws {RequiredError}
|
|
661
643
|
*/
|
|
662
|
-
reportPlaybackProgress(
|
|
663
|
-
return localVarFp.reportPlaybackProgress(playbackProgressInfo, options).then((request) => request(axios, basePath));
|
|
644
|
+
reportPlaybackProgress(requestParameters = {}, options) {
|
|
645
|
+
return localVarFp.reportPlaybackProgress(requestParameters.playbackProgressInfo, options).then((request) => request(axios, basePath));
|
|
664
646
|
},
|
|
665
647
|
/**
|
|
666
648
|
*
|
|
667
649
|
* @summary Reports playback has started within a session.
|
|
668
|
-
* @param {
|
|
650
|
+
* @param {PlaystateApiReportPlaybackStartRequest} requestParameters Request parameters.
|
|
669
651
|
* @param {*} [options] Override http request option.
|
|
670
652
|
* @throws {RequiredError}
|
|
671
653
|
*/
|
|
672
|
-
reportPlaybackStart(
|
|
673
|
-
return localVarFp.reportPlaybackStart(playbackStartInfo, options).then((request) => request(axios, basePath));
|
|
654
|
+
reportPlaybackStart(requestParameters = {}, options) {
|
|
655
|
+
return localVarFp.reportPlaybackStart(requestParameters.playbackStartInfo, options).then((request) => request(axios, basePath));
|
|
674
656
|
},
|
|
675
657
|
/**
|
|
676
658
|
*
|
|
677
659
|
* @summary Reports playback has stopped within a session.
|
|
678
|
-
* @param {
|
|
660
|
+
* @param {PlaystateApiReportPlaybackStoppedRequest} requestParameters Request parameters.
|
|
679
661
|
* @param {*} [options] Override http request option.
|
|
680
662
|
* @throws {RequiredError}
|
|
681
663
|
*/
|
|
682
|
-
reportPlaybackStopped(
|
|
683
|
-
return localVarFp.reportPlaybackStopped(playbackStopInfo, options).then((request) => request(axios, basePath));
|
|
664
|
+
reportPlaybackStopped(requestParameters = {}, options) {
|
|
665
|
+
return localVarFp.reportPlaybackStopped(requestParameters.playbackStopInfo, options).then((request) => request(axios, basePath));
|
|
684
666
|
},
|
|
685
667
|
};
|
|
686
668
|
};
|