@jellyfin/sdk 0.7.0 → 0.8.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 +22 -9
- package/lib/api.d.ts +4 -4
- package/lib/api.js +38 -68
- package/lib/discovery/discovery-service.d.ts +3 -1
- package/lib/discovery/discovery-service.js +27 -68
- package/lib/discovery/index.js +3 -18
- package/lib/discovery/recommended-server-discovery.d.ts +3 -1
- package/lib/discovery/recommended-server-discovery.js +56 -102
- package/lib/generated-client/api/activity-log-api.d.ts +4 -4
- package/lib/generated-client/api/activity-log-api.js +58 -165
- package/lib/generated-client/api/api-key-api.d.ts +10 -10
- package/lib/generated-client/api/api-key-api.js +112 -254
- package/lib/generated-client/api/artists-api.d.ts +10 -10
- package/lib/generated-client/api/artists-api.js +302 -446
- package/lib/generated-client/api/audio-api.d.ts +13 -13
- package/lib/generated-client/api/audio-api.js +714 -850
- package/lib/generated-client/api/branding-api.d.ts +10 -10
- package/lib/generated-client/api/branding-api.js +98 -222
- package/lib/generated-client/api/channels-api.d.ts +16 -16
- package/lib/generated-client/api/channels-api.js +230 -410
- package/lib/generated-client/api/client-log-api.d.ts +4 -4
- package/lib/generated-client/api/client-log-api.js +46 -153
- package/lib/generated-client/api/collection-api.d.ts +10 -10
- package/lib/generated-client/api/collection-api.js +132 -275
- package/lib/generated-client/api/configuration-api.d.ts +19 -19
- package/lib/generated-client/api/configuration-api.js +212 -408
- package/lib/generated-client/api/dashboard-api.d.ts +7 -7
- package/lib/generated-client/api/dashboard-api.js +78 -198
- package/lib/generated-client/api/devices-api.d.ts +16 -16
- package/lib/generated-client/api/devices-api.js +194 -373
- package/lib/generated-client/api/display-preferences-api.d.ts +7 -7
- package/lib/generated-client/api/display-preferences-api.js +104 -228
- package/lib/generated-client/api/dlna-api.d.ts +19 -19
- package/lib/generated-client/api/dlna-api.js +207 -404
- package/lib/generated-client/api/dlna-server-api.d.ts +49 -49
- package/lib/generated-client/api/dlna-server-api.js +545 -921
- package/lib/generated-client/api/dynamic-hls-api.d.ts +28 -28
- package/lib/generated-client/api/dynamic-hls-api.js +1686 -1936
- package/lib/generated-client/api/environment-api.d.ts +19 -19
- package/lib/generated-client/api/environment-api.js +214 -410
- package/lib/generated-client/api/filter-api.d.ts +7 -7
- package/lib/generated-client/api/filter-api.js +116 -242
- package/lib/generated-client/api/genres-api.d.ts +7 -7
- package/lib/generated-client/api/genres-api.js +134 -259
- package/lib/generated-client/api/hls-segment-api.d.ts +16 -16
- package/lib/generated-client/api/hls-segment-api.js +198 -358
- package/lib/generated-client/api/image-api.d.ts +124 -124
- package/lib/generated-client/api/image-api.js +2914 -3568
- package/lib/generated-client/api/image-by-name-api.d.ts +19 -19
- package/lib/generated-client/api/image-by-name-api.js +206 -384
- package/lib/generated-client/api/instant-mix-api.d.ts +25 -25
- package/lib/generated-client/api/instant-mix-api.js +450 -682
- package/lib/generated-client/api/item-lookup-api.d.ts +34 -34
- package/lib/generated-client/api/item-lookup-api.js +393 -679
- package/lib/generated-client/api/item-refresh-api.d.ts +4 -4
- package/lib/generated-client/api/item-refresh-api.js +59 -165
- package/lib/generated-client/api/item-update-api.d.ts +10 -10
- package/lib/generated-client/api/item-update-api.js +120 -262
- package/lib/generated-client/api/items-api.d.ts +10 -10
- package/lib/generated-client/api/items-api.js +675 -818
- package/lib/generated-client/api/library-api.d.ts +76 -76
- package/lib/generated-client/api/library-api.js +939 -1485
- package/lib/generated-client/api/library-structure-api.d.ts +25 -25
- package/lib/generated-client/api/library-structure-api.js +305 -542
- package/lib/generated-client/api/live-tv-api.d.ts +124 -124
- package/lib/generated-client/api/live-tv-api.js +1674 -2509
- package/lib/generated-client/api/localization-api.d.ts +13 -13
- package/lib/generated-client/api/localization-api.js +134 -294
- package/lib/generated-client/api/media-info-api.d.ts +16 -16
- package/lib/generated-client/api/media-info-api.js +262 -442
- package/lib/generated-client/api/movies-api.d.ts +4 -4
- package/lib/generated-client/api/movies-api.js +59 -166
- package/lib/generated-client/api/music-genres-api.d.ts +7 -7
- package/lib/generated-client/api/music-genres-api.js +134 -259
- package/lib/generated-client/api/notifications-api.d.ts +22 -22
- package/lib/generated-client/api/notifications-api.js +240 -454
- package/lib/generated-client/api/package-api.d.ts +19 -19
- package/lib/generated-client/api/package-api.js +219 -415
- package/lib/generated-client/api/persons-api.d.ts +7 -7
- package/lib/generated-client/api/persons-api.js +119 -244
- package/lib/generated-client/api/playlists-api.d.ts +16 -16
- package/lib/generated-client/api/playlists-api.js +231 -410
- package/lib/generated-client/api/playstate-api.d.ts +28 -28
- package/lib/generated-client/api/playstate-api.js +399 -652
- package/lib/generated-client/api/plugins-api.d.ts +28 -28
- package/lib/generated-client/api/plugins-api.js +320 -570
- package/lib/generated-client/api/quick-connect-api.d.ts +13 -13
- package/lib/generated-client/api/quick-connect-api.js +138 -280
- package/lib/generated-client/api/remote-image-api.d.ts +10 -10
- package/lib/generated-client/api/remote-image-api.js +136 -278
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +16 -16
- package/lib/generated-client/api/scheduled-tasks-api.js +186 -365
- package/lib/generated-client/api/search-api.d.ts +4 -4
- package/lib/generated-client/api/search-api.js +100 -206
- package/lib/generated-client/api/session-api.d.ts +49 -49
- package/lib/generated-client/api/session-api.js +632 -1010
- package/lib/generated-client/api/startup-api.d.ts +22 -22
- package/lib/generated-client/api/startup-api.js +234 -449
- package/lib/generated-client/api/studios-api.d.ts +7 -7
- package/lib/generated-client/api/studios-api.js +131 -256
- package/lib/generated-client/api/subtitle-api.d.ts +31 -31
- package/lib/generated-client/api/subtitle-api.js +433 -689
- package/lib/generated-client/api/suggestions-api.d.ts +4 -4
- package/lib/generated-client/api/suggestions-api.js +62 -168
- package/lib/generated-client/api/sync-play-api.d.ts +64 -64
- package/lib/generated-client/api/sync-play-api.js +708 -1174
- package/lib/generated-client/api/system-api.d.ts +31 -31
- package/lib/generated-client/api/system-api.js +313 -563
- package/lib/generated-client/api/time-sync-api.d.ts +4 -4
- package/lib/generated-client/api/time-sync-api.js +42 -142
- package/lib/generated-client/api/tmdb-api.d.ts +4 -4
- package/lib/generated-client/api/tmdb-api.js +44 -150
- package/lib/generated-client/api/trailers-api.d.ts +4 -4
- package/lib/generated-client/api/trailers-api.js +304 -411
- package/lib/generated-client/api/tv-shows-api.d.ts +13 -13
- package/lib/generated-client/api/tv-shows-api.js +280 -442
- package/lib/generated-client/api/universal-audio-api.d.ts +7 -7
- package/lib/generated-client/api/universal-audio-api.js +182 -306
- package/lib/generated-client/api/user-api.d.ts +49 -49
- package/lib/generated-client/api/user-api.js +560 -901
- package/lib/generated-client/api/user-library-api.d.ts +31 -31
- package/lib/generated-client/api/user-library-api.js +401 -669
- package/lib/generated-client/api/user-views-api.d.ts +7 -7
- package/lib/generated-client/api/user-views-api.js +89 -213
- package/lib/generated-client/api/video-attachments-api.d.ts +4 -4
- package/lib/generated-client/api/video-attachments-api.js +51 -151
- package/lib/generated-client/api/videos-api.d.ts +22 -22
- package/lib/generated-client/api/videos-api.js +842 -1032
- package/lib/generated-client/api/years-api.d.ts +7 -7
- package/lib/generated-client/api/years-api.js +125 -250
- package/lib/generated-client/base.d.ts +2 -2
- package/lib/generated-client/base.js +14 -64
- package/lib/generated-client/common.d.ts +2 -2
- package/lib/generated-client/common.js +28 -184
- package/lib/generated-client/configuration.js +8 -12
- package/lib/generated-client/index.js +136 -31
- package/lib/generated-client/models/access-schedule.d.ts +5 -5
- package/lib/generated-client/models/activity-log-entry-query-result.d.ts +3 -3
- package/lib/generated-client/models/activity-log-entry.d.ts +10 -10
- package/lib/generated-client/models/add-virtual-folder-dto.d.ts +1 -1
- package/lib/generated-client/models/admin-notification-dto.d.ts +4 -4
- package/lib/generated-client/models/album-info-remote-search-query.d.ts +4 -4
- package/lib/generated-client/models/album-info.d.ts +14 -14
- package/lib/generated-client/models/all-theme-media-result.d.ts +3 -3
- package/lib/generated-client/models/architecture.d.ts +9 -8
- package/lib/generated-client/models/architecture.js +10 -12
- package/lib/generated-client/models/artist-info-remote-search-query.d.ts +4 -4
- package/lib/generated-client/models/artist-info.d.ts +12 -12
- package/lib/generated-client/models/authenticate-user-by-name.d.ts +3 -3
- package/lib/generated-client/models/authentication-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/authentication-info.d.ts +12 -12
- package/lib/generated-client/models/authentication-result.d.ts +4 -4
- package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +13 -13
- package/lib/generated-client/models/base-item-dto-query-result.d.ts +3 -3
- package/lib/generated-client/models/base-item-dto.d.ts +151 -151
- package/lib/generated-client/models/base-item-kind.d.ts +40 -39
- package/lib/generated-client/models/base-item-kind.js +41 -43
- package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +13 -13
- package/lib/generated-client/models/base-item-person.d.ts +6 -6
- package/lib/generated-client/models/base-item.d.ts +11 -11
- package/lib/generated-client/models/book-info-remote-search-query.d.ts +4 -4
- package/lib/generated-client/models/book-info.d.ts +12 -12
- package/lib/generated-client/models/box-set-info-remote-search-query.d.ts +4 -4
- package/lib/generated-client/models/box-set-info.d.ts +11 -11
- package/lib/generated-client/models/branding-options.d.ts +3 -3
- package/lib/generated-client/models/buffer-request-dto.d.ts +4 -4
- package/lib/generated-client/models/channel-features.d.ts +12 -12
- package/lib/generated-client/models/channel-item-sort-field.d.ts +10 -9
- package/lib/generated-client/models/channel-item-sort-field.js +11 -13
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +4 -4
- package/lib/generated-client/models/channel-media-content-type.d.ts +11 -10
- package/lib/generated-client/models/channel-media-content-type.js +12 -14
- package/lib/generated-client/models/channel-media-type.d.ts +6 -5
- package/lib/generated-client/models/channel-media-type.js +7 -9
- package/lib/generated-client/models/channel-type.d.ts +5 -4
- package/lib/generated-client/models/channel-type.js +6 -8
- package/lib/generated-client/models/chapter-info.d.ts +5 -5
- package/lib/generated-client/models/client-capabilities-dto.d.ts +10 -10
- package/lib/generated-client/models/client-capabilities.d.ts +10 -10
- package/lib/generated-client/models/client-log-document-response-dto.d.ts +1 -1
- package/lib/generated-client/models/codec-profile.d.ts +5 -5
- package/lib/generated-client/models/codec-type.d.ts +6 -5
- package/lib/generated-client/models/codec-type.js +7 -9
- package/lib/generated-client/models/collection-creation-result.d.ts +1 -1
- package/lib/generated-client/models/collection-type-options.d.ts +11 -10
- package/lib/generated-client/models/collection-type-options.js +12 -14
- package/lib/generated-client/models/config-image-types.d.ts +7 -7
- package/lib/generated-client/models/configuration-page-info.d.ts +6 -6
- package/lib/generated-client/models/container-profile.d.ts +3 -3
- package/lib/generated-client/models/control-response.d.ts +3 -3
- package/lib/generated-client/models/country-info.d.ts +4 -4
- package/lib/generated-client/models/create-playlist-dto.d.ts +4 -4
- package/lib/generated-client/models/create-user-by-name.d.ts +2 -2
- package/lib/generated-client/models/culture-dto.d.ts +5 -5
- package/lib/generated-client/models/day-of-week.d.ts +10 -9
- package/lib/generated-client/models/day-of-week.js +11 -13
- package/lib/generated-client/models/day-pattern.d.ts +6 -5
- package/lib/generated-client/models/day-pattern.js +7 -9
- package/lib/generated-client/models/default-directory-browser-info-dto.d.ts +1 -1
- package/lib/generated-client/models/device-identification.d.ts +9 -9
- package/lib/generated-client/models/device-info-query-result.d.ts +3 -3
- package/lib/generated-client/models/device-info.d.ts +10 -10
- package/lib/generated-client/models/device-options-dto.d.ts +3 -3
- package/lib/generated-client/models/device-options.d.ts +3 -3
- package/lib/generated-client/models/device-profile-info.d.ts +3 -3
- package/lib/generated-client/models/device-profile-type.d.ts +5 -4
- package/lib/generated-client/models/device-profile-type.js +6 -8
- package/lib/generated-client/models/device-profile.d.ts +39 -39
- package/lib/generated-client/models/direct-play-profile.d.ts +4 -4
- package/lib/generated-client/models/display-preferences-dto.d.ts +14 -14
- package/lib/generated-client/models/dlna-options.d.ts +11 -11
- package/lib/generated-client/models/dlna-profile-type.d.ts +7 -6
- package/lib/generated-client/models/dlna-profile-type.js +8 -10
- package/lib/generated-client/models/dynamic-day-of-week.d.ts +13 -12
- package/lib/generated-client/models/dynamic-day-of-week.js +14 -16
- package/lib/generated-client/models/embedded-subtitle-options.d.ts +7 -6
- package/lib/generated-client/models/embedded-subtitle-options.js +8 -10
- package/lib/generated-client/models/encoding-context.d.ts +5 -4
- package/lib/generated-client/models/encoding-context.js +6 -8
- package/lib/generated-client/models/encoding-options.d.ts +38 -38
- package/lib/generated-client/models/end-point-info.d.ts +2 -2
- package/lib/generated-client/models/external-id-info.d.ts +4 -4
- package/lib/generated-client/models/external-id-media-type.d.ts +15 -14
- package/lib/generated-client/models/external-id-media-type.js +16 -18
- package/lib/generated-client/models/external-url.d.ts +2 -2
- package/lib/generated-client/models/ffmpeg-location.d.ts +7 -6
- package/lib/generated-client/models/ffmpeg-location.js +8 -10
- package/lib/generated-client/models/file-system-entry-info.d.ts +3 -3
- package/lib/generated-client/models/file-system-entry-type.d.ts +7 -6
- package/lib/generated-client/models/file-system-entry-type.js +8 -10
- package/lib/generated-client/models/font-file.d.ts +4 -4
- package/lib/generated-client/models/forgot-password-action.d.ts +6 -5
- package/lib/generated-client/models/forgot-password-action.js +7 -9
- package/lib/generated-client/models/forgot-password-dto.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-pin-dto.d.ts +1 -1
- package/lib/generated-client/models/forgot-password-result.d.ts +3 -3
- package/lib/generated-client/models/general-command-type.d.ts +45 -44
- package/lib/generated-client/models/general-command-type.js +46 -48
- package/lib/generated-client/models/general-command.d.ts +3 -3
- package/lib/generated-client/models/get-programs-dto.d.ts +27 -27
- package/lib/generated-client/models/group-info-dto.d.ts +5 -5
- package/lib/generated-client/models/group-queue-mode.d.ts +5 -4
- package/lib/generated-client/models/group-queue-mode.js +6 -8
- package/lib/generated-client/models/group-repeat-mode.d.ts +6 -5
- package/lib/generated-client/models/group-repeat-mode.js +7 -9
- package/lib/generated-client/models/group-shuffle-mode.d.ts +5 -4
- package/lib/generated-client/models/group-shuffle-mode.js +6 -8
- package/lib/generated-client/models/group-state-type.d.ts +7 -6
- package/lib/generated-client/models/group-state-type.js +8 -10
- package/lib/generated-client/models/group-update-type.d.ts +14 -13
- package/lib/generated-client/models/group-update-type.js +15 -17
- package/lib/generated-client/models/guide-info.d.ts +2 -2
- package/lib/generated-client/models/hardware-encoding-type.d.ts +9 -8
- package/lib/generated-client/models/hardware-encoding-type.js +10 -12
- package/lib/generated-client/models/header-match-type.d.ts +6 -5
- package/lib/generated-client/models/header-match-type.js +7 -9
- package/lib/generated-client/models/http-header-info.d.ts +3 -3
- package/lib/generated-client/models/ignore-wait-request-dto.d.ts +1 -1
- package/lib/generated-client/models/image-by-name-info.d.ts +5 -5
- package/lib/generated-client/models/image-format.d.ts +8 -7
- package/lib/generated-client/models/image-format.js +9 -11
- package/lib/generated-client/models/image-info.d.ts +8 -8
- package/lib/generated-client/models/image-option.d.ts +3 -3
- package/lib/generated-client/models/image-orientation.d.ts +11 -10
- package/lib/generated-client/models/image-orientation.js +12 -14
- package/lib/generated-client/models/image-provider-info.d.ts +2 -2
- package/lib/generated-client/models/image-saving-convention.d.ts +5 -4
- package/lib/generated-client/models/image-saving-convention.js +6 -8
- package/lib/generated-client/models/image-type.d.ts +16 -15
- package/lib/generated-client/models/image-type.js +17 -19
- package/lib/generated-client/models/index.d.ts +1 -0
- package/lib/generated-client/models/index.js +74 -300
- package/lib/generated-client/models/installation-info.d.ts +7 -7
- package/lib/generated-client/models/iplugin.d.ts +7 -7
- package/lib/generated-client/models/iso-type.d.ts +5 -4
- package/lib/generated-client/models/iso-type.js +6 -8
- package/lib/generated-client/models/item-counts.d.ts +12 -12
- package/lib/generated-client/models/item-fields.d.ts +64 -63
- package/lib/generated-client/models/item-fields.js +65 -67
- package/lib/generated-client/models/item-filter.d.ts +12 -11
- package/lib/generated-client/models/item-filter.js +13 -15
- package/lib/generated-client/models/join-group-request-dto.d.ts +1 -1
- package/lib/generated-client/models/keep-until.d.ts +7 -6
- package/lib/generated-client/models/keep-until.js +8 -10
- package/lib/generated-client/models/library-option-info-dto.d.ts +2 -2
- package/lib/generated-client/models/library-options-result-dto.d.ts +4 -4
- package/lib/generated-client/models/library-options.d.ts +27 -27
- package/lib/generated-client/models/library-type-options-dto.d.ts +5 -5
- package/lib/generated-client/models/library-update-info.d.ts +7 -7
- package/lib/generated-client/models/listings-provider-info.d.ts +18 -18
- package/lib/generated-client/models/live-stream-response.d.ts +1 -1
- package/lib/generated-client/models/live-tv-info.d.ts +3 -3
- package/lib/generated-client/models/live-tv-options.d.ts +13 -13
- package/lib/generated-client/models/live-tv-service-info.d.ts +8 -8
- package/lib/generated-client/models/live-tv-service-status.d.ts +5 -4
- package/lib/generated-client/models/live-tv-service-status.js +6 -8
- package/lib/generated-client/models/localization-option.d.ts +2 -2
- package/lib/generated-client/models/location-type.d.ts +7 -6
- package/lib/generated-client/models/location-type.js +8 -10
- package/lib/generated-client/models/log-file.d.ts +4 -4
- package/lib/generated-client/models/log-level.d.ts +10 -9
- package/lib/generated-client/models/log-level.js +11 -13
- package/lib/generated-client/models/media-attachment.d.ts +7 -7
- package/lib/generated-client/models/media-encoder-path-dto.d.ts +2 -2
- package/lib/generated-client/models/media-path-dto.d.ts +3 -3
- package/lib/generated-client/models/media-path-info.d.ts +2 -2
- package/lib/generated-client/models/media-protocol.d.ts +10 -9
- package/lib/generated-client/models/media-protocol.js +11 -13
- package/lib/generated-client/models/media-source-info.d.ts +42 -42
- package/lib/generated-client/models/media-source-type.d.ts +6 -5
- package/lib/generated-client/models/media-source-type.js +7 -9
- package/lib/generated-client/models/media-stream-type.d.ts +8 -6
- package/lib/generated-client/models/media-stream-type.js +9 -10
- package/lib/generated-client/models/media-stream.d.ts +58 -58
- package/lib/generated-client/models/media-update-info-dto.d.ts +1 -1
- package/lib/generated-client/models/media-update-info-path-dto.d.ts +2 -2
- package/lib/generated-client/models/media-url.d.ts +2 -2
- package/lib/generated-client/models/message-command.d.ts +3 -3
- package/lib/generated-client/models/metadata-configuration.d.ts +1 -1
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/metadata-field.d.ts +12 -11
- package/lib/generated-client/models/metadata-field.js +13 -15
- package/lib/generated-client/models/metadata-options.d.ts +7 -7
- package/lib/generated-client/models/metadata-refresh-mode.d.ts +7 -6
- package/lib/generated-client/models/metadata-refresh-mode.js +8 -10
- package/lib/generated-client/models/move-playlist-item-request-dto.d.ts +2 -2
- package/lib/generated-client/models/movie-info-remote-search-query.d.ts +4 -4
- package/lib/generated-client/models/movie-info.d.ts +11 -11
- package/lib/generated-client/models/music-video-info-remote-search-query.d.ts +4 -4
- package/lib/generated-client/models/music-video-info.d.ts +12 -12
- package/lib/generated-client/models/name-guid-pair.d.ts +2 -2
- package/lib/generated-client/models/name-id-pair.d.ts +2 -2
- package/lib/generated-client/models/name-value-pair.d.ts +2 -2
- package/lib/generated-client/models/network-configuration.d.ts +34 -34
- package/lib/generated-client/models/new-group-request-dto.d.ts +1 -1
- package/lib/generated-client/models/next-item-request-dto.d.ts +1 -1
- package/lib/generated-client/models/notification-dto.d.ts +8 -8
- package/lib/generated-client/models/notification-level.d.ts +6 -5
- package/lib/generated-client/models/notification-level.js +7 -9
- package/lib/generated-client/models/notification-option.d.ts +6 -6
- package/lib/generated-client/models/notification-options.d.ts +1 -1
- package/lib/generated-client/models/notification-result-dto.d.ts +2 -2
- package/lib/generated-client/models/notification-type-info.d.ts +5 -5
- package/lib/generated-client/models/notifications-summary-dto.d.ts +2 -2
- package/lib/generated-client/models/object-group-update.d.ts +3 -3
- package/lib/generated-client/models/open-live-stream-dto.d.ts +13 -13
- package/lib/generated-client/models/package-info.d.ts +8 -8
- package/lib/generated-client/models/parental-rating.d.ts +2 -2
- package/lib/generated-client/models/path-substitution.d.ts +2 -2
- package/lib/generated-client/models/person-lookup-info-remote-search-query.d.ts +4 -4
- package/lib/generated-client/models/person-lookup-info.d.ts +11 -11
- package/lib/generated-client/models/pin-redeem-result.d.ts +2 -2
- package/lib/generated-client/models/ping-request-dto.d.ts +1 -1
- package/lib/generated-client/models/play-access.d.ts +5 -4
- package/lib/generated-client/models/play-access.js +6 -8
- package/lib/generated-client/models/play-command.d.ts +8 -7
- package/lib/generated-client/models/play-command.js +9 -11
- package/lib/generated-client/models/play-method.d.ts +6 -5
- package/lib/generated-client/models/play-method.js +7 -9
- package/lib/generated-client/models/play-request-dto.d.ts +3 -3
- package/lib/generated-client/models/play-request.d.ts +8 -8
- package/lib/generated-client/models/playback-error-code.d.ts +6 -5
- package/lib/generated-client/models/playback-error-code.js +7 -9
- package/lib/generated-client/models/playback-info-dto.d.ts +15 -15
- package/lib/generated-client/models/playback-info-response.d.ts +3 -3
- package/lib/generated-client/models/playback-progress-info.d.ts +20 -20
- package/lib/generated-client/models/playback-start-info.d.ts +20 -20
- package/lib/generated-client/models/playback-stop-info.d.ts +11 -11
- package/lib/generated-client/models/player-state-info.d.ts +11 -11
- package/lib/generated-client/models/playlist-creation-result.d.ts +1 -1
- package/lib/generated-client/models/playstate-command.d.ts +12 -11
- package/lib/generated-client/models/playstate-command.js +13 -15
- package/lib/generated-client/models/playstate-request.d.ts +3 -3
- package/lib/generated-client/models/plugin-info.d.ts +8 -8
- package/lib/generated-client/models/plugin-status.d.ts +10 -9
- package/lib/generated-client/models/plugin-status.js +11 -13
- package/lib/generated-client/models/previous-item-request-dto.d.ts +1 -1
- package/lib/generated-client/models/problem-details.d.ts +5 -5
- package/lib/generated-client/models/profile-condition-type.d.ts +8 -7
- package/lib/generated-client/models/profile-condition-type.js +9 -11
- package/lib/generated-client/models/profile-condition-value.d.ts +27 -26
- package/lib/generated-client/models/profile-condition-value.js +28 -30
- package/lib/generated-client/models/profile-condition.d.ts +4 -4
- package/lib/generated-client/models/program-audio.d.ts +9 -8
- package/lib/generated-client/models/program-audio.js +10 -12
- package/lib/generated-client/models/public-system-info.d.ts +7 -7
- package/lib/generated-client/models/query-filters-legacy.d.ts +4 -4
- package/lib/generated-client/models/query-filters.d.ts +2 -2
- package/lib/generated-client/models/queue-item.d.ts +2 -2
- package/lib/generated-client/models/queue-request-dto.d.ts +2 -2
- package/lib/generated-client/models/quick-connect-dto.d.ts +1 -1
- package/lib/generated-client/models/quick-connect-result.d.ts +8 -8
- package/lib/generated-client/models/rating-type.d.ts +5 -4
- package/lib/generated-client/models/rating-type.js +6 -8
- package/lib/generated-client/models/ready-request-dto.d.ts +4 -4
- package/lib/generated-client/models/recommendation-dto.d.ts +4 -4
- package/lib/generated-client/models/recommendation-type.d.ts +9 -8
- package/lib/generated-client/models/recommendation-type.js +10 -12
- package/lib/generated-client/models/recording-status.d.ts +10 -9
- package/lib/generated-client/models/recording-status.js +11 -13
- package/lib/generated-client/models/remote-image-info.d.ts +10 -10
- package/lib/generated-client/models/remote-image-result.d.ts +3 -3
- package/lib/generated-client/models/remote-search-result.d.ts +12 -12
- package/lib/generated-client/models/remote-subtitle-info.d.ts +11 -11
- package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +3 -3
- package/lib/generated-client/models/repeat-mode.d.ts +6 -5
- package/lib/generated-client/models/repeat-mode.js +7 -9
- package/lib/generated-client/models/repository-info.d.ts +3 -3
- package/lib/generated-client/models/response-profile.d.ts +7 -7
- package/lib/generated-client/models/scroll-direction.d.ts +5 -4
- package/lib/generated-client/models/scroll-direction.js +6 -8
- package/lib/generated-client/models/search-hint-result.d.ts +2 -2
- package/lib/generated-client/models/search-hint.d.ts +29 -29
- package/lib/generated-client/models/seek-request-dto.d.ts +1 -1
- package/lib/generated-client/models/send-command-type.d.ts +7 -6
- package/lib/generated-client/models/send-command-type.js +8 -10
- package/lib/generated-client/models/send-command.d.ts +6 -6
- package/lib/generated-client/models/send-to-user-type.d.ts +6 -5
- package/lib/generated-client/models/send-to-user-type.js +7 -9
- package/lib/generated-client/models/series-info-remote-search-query.d.ts +4 -4
- package/lib/generated-client/models/series-info.d.ts +11 -11
- package/lib/generated-client/models/series-status.d.ts +5 -4
- package/lib/generated-client/models/series-status.js +6 -8
- 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 +35 -35
- package/lib/generated-client/models/server-configuration.d.ts +48 -48
- package/lib/generated-client/models/server-discovery-info.d.ts +4 -4
- package/lib/generated-client/models/session-info.d.ts +29 -29
- package/lib/generated-client/models/session-message-type.d.ts +37 -36
- package/lib/generated-client/models/session-message-type.js +38 -40
- package/lib/generated-client/models/session-user-info.d.ts +2 -2
- package/lib/generated-client/models/set-channel-mapping-dto.d.ts +3 -3
- package/lib/generated-client/models/set-playlist-item-request-dto.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 +14 -14
- package/lib/generated-client/models/sort-order.d.ts +5 -4
- package/lib/generated-client/models/sort-order.js +6 -8
- package/lib/generated-client/models/special-view-option-dto.d.ts +2 -2
- package/lib/generated-client/models/startup-configuration-dto.d.ts +3 -3
- package/lib/generated-client/models/startup-remote-access-dto.d.ts +2 -2
- package/lib/generated-client/models/startup-user-dto.d.ts +2 -2
- package/lib/generated-client/models/subtitle-delivery-method.d.ts +8 -7
- package/lib/generated-client/models/subtitle-delivery-method.js +9 -11
- package/lib/generated-client/models/subtitle-options.d.ts +9 -9
- package/lib/generated-client/models/subtitle-playback-mode.d.ts +8 -7
- package/lib/generated-client/models/subtitle-playback-mode.js +9 -11
- package/lib/generated-client/models/subtitle-profile.d.ts +5 -5
- package/lib/generated-client/models/sync-play-user-access-type.d.ts +6 -5
- package/lib/generated-client/models/sync-play-user-access-type.js +7 -9
- package/lib/generated-client/models/system-info.d.ts +26 -26
- package/lib/generated-client/models/task-completion-status.d.ts +7 -6
- package/lib/generated-client/models/task-completion-status.js +8 -10
- package/lib/generated-client/models/task-info.d.ts +10 -10
- package/lib/generated-client/models/task-result.d.ts +8 -8
- package/lib/generated-client/models/task-state.d.ts +6 -5
- package/lib/generated-client/models/task-state.js +7 -9
- package/lib/generated-client/models/task-trigger-info.d.ts +5 -5
- package/lib/generated-client/models/theme-media-result.d.ts +4 -4
- package/lib/generated-client/models/timer-event-info.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 +28 -28
- package/lib/generated-client/models/trailer-info-remote-search-query.d.ts +4 -4
- package/lib/generated-client/models/trailer-info.d.ts +11 -11
- package/lib/generated-client/models/transcode-reason.d.ts +43 -0
- package/lib/generated-client/models/transcode-reason.js +46 -0
- package/lib/generated-client/models/transcode-seek-info.d.ts +5 -4
- package/lib/generated-client/models/transcode-seek-info.js +6 -8
- package/lib/generated-client/models/transcoding-info.d.ts +15 -45
- package/lib/generated-client/models/transcoding-profile.d.ts +16 -16
- package/lib/generated-client/models/transport-stream-timestamp.d.ts +6 -5
- package/lib/generated-client/models/transport-stream-timestamp.js +7 -9
- package/lib/generated-client/models/tuner-channel-mapping.d.ts +4 -4
- package/lib/generated-client/models/tuner-host-info.d.ts +11 -11
- package/lib/generated-client/models/type-options.d.ts +6 -6
- package/lib/generated-client/models/unrated-item.d.ts +12 -11
- package/lib/generated-client/models/unrated-item.js +13 -15
- package/lib/generated-client/models/update-library-options-dto.d.ts +2 -2
- package/lib/generated-client/models/update-media-path-request-dto.d.ts +2 -2
- package/lib/generated-client/models/update-user-easy-password.d.ts +3 -3
- package/lib/generated-client/models/update-user-password.d.ts +4 -4
- package/lib/generated-client/models/upload-subtitle-dto.d.ts +4 -4
- package/lib/generated-client/models/user-configuration.d.ts +15 -15
- package/lib/generated-client/models/user-dto.d.ts +14 -14
- package/lib/generated-client/models/user-item-data-dto.d.ts +11 -11
- package/lib/generated-client/models/user-policy.d.ts +39 -39
- package/lib/generated-client/models/utc-time-response.d.ts +2 -2
- package/lib/generated-client/models/validate-path-dto.d.ts +3 -3
- package/lib/generated-client/models/version-info.d.ts +9 -9
- package/lib/generated-client/models/video-type.d.ts +7 -6
- package/lib/generated-client/models/video-type.js +8 -10
- package/lib/generated-client/models/video3-dformat.d.ts +8 -7
- package/lib/generated-client/models/video3-dformat.js +9 -11
- package/lib/generated-client/models/virtual-folder-info.d.ts +8 -8
- package/lib/generated-client/models/wake-on-lan-info.d.ts +2 -2
- package/lib/generated-client/models/xbmc-metadata-options.d.ts +5 -5
- package/lib/generated-client/models/xml-attribute.d.ts +2 -2
- package/lib/index.js +9 -39
- package/lib/jellyfin.d.ts +5 -7
- package/lib/jellyfin.js +12 -18
- package/lib/models/api/image-request-parameters.d.ts +1 -1
- package/lib/models/api/index.js +1 -23
- package/lib/models/api/item-sort-by.js +3 -4
- package/lib/models/index.js +2 -25
- package/lib/models/recommended-server-info.d.ts +2 -2
- package/lib/models/recommended-server-info.js +3 -4
- package/lib/models/recommended-server-issue.js +31 -77
- package/lib/utils/address-candidates.js +30 -30
- package/lib/utils/api/activity-log-api.d.ts +1 -1
- package/lib/utils/api/activity-log-api.js +5 -6
- package/lib/utils/api/api-key-api.d.ts +1 -1
- package/lib/utils/api/api-key-api.js +5 -6
- package/lib/utils/api/artists-api.d.ts +1 -1
- package/lib/utils/api/artists-api.js +5 -6
- package/lib/utils/api/audio-api.d.ts +1 -1
- package/lib/utils/api/audio-api.js +5 -6
- package/lib/utils/api/branding-api.d.ts +1 -1
- package/lib/utils/api/branding-api.js +5 -6
- package/lib/utils/api/channels-api.d.ts +1 -1
- package/lib/utils/api/channels-api.js +5 -6
- package/lib/utils/api/client-log-api.d.ts +1 -1
- package/lib/utils/api/client-log-api.js +5 -6
- package/lib/utils/api/collection-api.d.ts +1 -1
- package/lib/utils/api/collection-api.js +5 -6
- package/lib/utils/api/configuration-api.d.ts +1 -1
- package/lib/utils/api/configuration-api.js +5 -6
- package/lib/utils/api/dashboard-api.d.ts +1 -1
- package/lib/utils/api/dashboard-api.js +5 -6
- package/lib/utils/api/devices-api.d.ts +1 -1
- package/lib/utils/api/devices-api.js +5 -6
- package/lib/utils/api/display-preferences-api.d.ts +1 -1
- package/lib/utils/api/display-preferences-api.js +5 -6
- package/lib/utils/api/dlna-api.d.ts +1 -1
- package/lib/utils/api/dlna-api.js +5 -6
- package/lib/utils/api/dlna-server-api.d.ts +1 -1
- package/lib/utils/api/dlna-server-api.js +5 -6
- package/lib/utils/api/dynamic-hls-api.d.ts +1 -1
- package/lib/utils/api/dynamic-hls-api.js +5 -6
- package/lib/utils/api/environment-api.d.ts +1 -1
- package/lib/utils/api/environment-api.js +5 -6
- package/lib/utils/api/filter-api.d.ts +1 -1
- package/lib/utils/api/filter-api.js +5 -6
- package/lib/utils/api/genres-api.d.ts +1 -1
- package/lib/utils/api/genres-api.js +5 -6
- package/lib/utils/api/hls-segment-api.d.ts +1 -1
- package/lib/utils/api/hls-segment-api.js +5 -6
- package/lib/utils/api/image-api.d.ts +1 -1
- package/lib/utils/api/image-api.js +5 -6
- package/lib/utils/api/image-by-name-api.d.ts +1 -1
- package/lib/utils/api/image-by-name-api.js +5 -6
- package/lib/utils/api/index.d.ts +66 -0
- package/lib/utils/api/index.js +61 -0
- package/lib/utils/api/instant-mix-api.d.ts +1 -1
- package/lib/utils/api/instant-mix-api.js +5 -6
- package/lib/utils/api/item-lookup-api.d.ts +1 -1
- package/lib/utils/api/item-lookup-api.js +5 -6
- package/lib/utils/api/item-refresh-api.d.ts +1 -1
- package/lib/utils/api/item-refresh-api.js +5 -6
- package/lib/utils/api/item-update-api.d.ts +1 -1
- package/lib/utils/api/item-update-api.js +5 -6
- package/lib/utils/api/items-api.d.ts +1 -1
- package/lib/utils/api/items-api.js +5 -6
- package/lib/utils/api/library-api.d.ts +1 -1
- package/lib/utils/api/library-api.js +5 -6
- package/lib/utils/api/library-structure-api.d.ts +1 -1
- package/lib/utils/api/library-structure-api.js +5 -6
- package/lib/utils/api/live-tv-api.d.ts +1 -1
- package/lib/utils/api/live-tv-api.js +5 -6
- package/lib/utils/api/localization-api.d.ts +1 -1
- package/lib/utils/api/localization-api.js +5 -6
- package/lib/utils/api/media-info-api.d.ts +1 -1
- package/lib/utils/api/media-info-api.js +5 -6
- package/lib/utils/api/movies-api.d.ts +1 -1
- package/lib/utils/api/movies-api.js +5 -6
- package/lib/utils/api/music-genres-api.d.ts +1 -1
- package/lib/utils/api/music-genres-api.js +5 -6
- package/lib/utils/api/notifications-api.d.ts +1 -1
- package/lib/utils/api/notifications-api.js +5 -6
- package/lib/utils/api/package-api.d.ts +1 -1
- package/lib/utils/api/package-api.js +5 -6
- package/lib/utils/api/persons-api.d.ts +1 -1
- package/lib/utils/api/persons-api.js +5 -6
- package/lib/utils/api/playlists-api.d.ts +1 -1
- package/lib/utils/api/playlists-api.js +5 -6
- package/lib/utils/api/playstate-api.d.ts +1 -1
- package/lib/utils/api/playstate-api.js +5 -6
- package/lib/utils/api/plugins-api.d.ts +1 -1
- package/lib/utils/api/plugins-api.js +5 -6
- package/lib/utils/api/quick-connect-api.d.ts +1 -1
- package/lib/utils/api/quick-connect-api.js +5 -6
- package/lib/utils/api/remote-image-api.d.ts +1 -1
- package/lib/utils/api/remote-image-api.js +5 -6
- package/lib/utils/api/scheduled-tasks-api.d.ts +1 -1
- package/lib/utils/api/scheduled-tasks-api.js +5 -6
- package/lib/utils/api/search-api.d.ts +1 -1
- package/lib/utils/api/search-api.js +5 -6
- package/lib/utils/api/session-api.d.ts +1 -1
- package/lib/utils/api/session-api.js +5 -6
- package/lib/utils/api/startup-api.d.ts +1 -1
- package/lib/utils/api/startup-api.js +5 -6
- package/lib/utils/api/studios-api.d.ts +1 -1
- package/lib/utils/api/studios-api.js +5 -6
- package/lib/utils/api/subtitle-api.d.ts +1 -1
- package/lib/utils/api/subtitle-api.js +5 -6
- package/lib/utils/api/suggestions-api.d.ts +1 -1
- package/lib/utils/api/suggestions-api.js +5 -6
- package/lib/utils/api/sync-play-api.d.ts +1 -1
- package/lib/utils/api/sync-play-api.js +5 -6
- package/lib/utils/api/system-api.d.ts +1 -1
- package/lib/utils/api/system-api.js +5 -6
- package/lib/utils/api/time-sync-api.d.ts +1 -1
- package/lib/utils/api/time-sync-api.js +5 -6
- package/lib/utils/api/tmdb-api.d.ts +1 -1
- package/lib/utils/api/tmdb-api.js +5 -6
- package/lib/utils/api/trailers-api.d.ts +1 -1
- package/lib/utils/api/trailers-api.js +5 -6
- package/lib/utils/api/tv-shows-api.d.ts +1 -1
- package/lib/utils/api/tv-shows-api.js +5 -6
- package/lib/utils/api/universal-audio-api.d.ts +1 -1
- package/lib/utils/api/universal-audio-api.js +5 -6
- package/lib/utils/api/user-api.d.ts +1 -1
- package/lib/utils/api/user-api.js +5 -6
- package/lib/utils/api/user-library-api.d.ts +1 -1
- package/lib/utils/api/user-library-api.js +5 -6
- package/lib/utils/api/user-views-api.d.ts +1 -1
- package/lib/utils/api/user-views-api.js +5 -6
- package/lib/utils/api/video-attachments-api.d.ts +1 -1
- package/lib/utils/api/video-attachments-api.js +5 -6
- package/lib/utils/api/videos-api.d.ts +1 -1
- package/lib/utils/api/videos-api.js +5 -6
- package/lib/utils/api/years-api.d.ts +1 -1
- package/lib/utils/api/years-api.js +5 -6
- package/lib/utils/authentication.d.ts +1 -1
- package/lib/utils/authentication.js +8 -11
- package/lib/utils/browser-profiles.d.ts +1 -1
- package/lib/utils/browser-profiles.js +11 -12
- package/lib/utils/index.js +6 -20
- package/lib/utils/url/constants.d.ts +13 -0
- package/lib/utils/url/constants.js +15 -0
- package/lib/utils/{url.d.ts → url/index.d.ts} +2 -8
- package/lib/utils/url/index.js +41 -0
- package/lib/utils/{normalize-url.js → url/normalize-url.js} +16 -16
- package/lib/{models/api/image-request-parameters.js → versions.d.ts} +4 -2
- package/lib/{models/client-info.js → versions.js} +6 -2
- package/package.json +21 -17
- package/.gitattributes +0 -5
- package/lib/generated-client/api.js +0 -89
- package/lib/generated-client/models/access-schedule.js +0 -14
- package/lib/generated-client/models/activity-log-entry-query-result.js +0 -14
- package/lib/generated-client/models/activity-log-entry.js +0 -14
- package/lib/generated-client/models/add-virtual-folder-dto.js +0 -14
- package/lib/generated-client/models/admin-notification-dto.js +0 -14
- package/lib/generated-client/models/album-info-remote-search-query.js +0 -14
- package/lib/generated-client/models/album-info.js +0 -14
- package/lib/generated-client/models/all-theme-media-result.js +0 -14
- package/lib/generated-client/models/artist-info-remote-search-query.js +0 -14
- package/lib/generated-client/models/artist-info.js +0 -14
- package/lib/generated-client/models/authenticate-user-by-name.js +0 -14
- package/lib/generated-client/models/authentication-info-query-result.js +0 -14
- package/lib/generated-client/models/authentication-info.js +0 -14
- package/lib/generated-client/models/authentication-result.js +0 -14
- package/lib/generated-client/models/base-item-dto-image-blur-hashes.js +0 -14
- package/lib/generated-client/models/base-item-dto-query-result.js +0 -14
- package/lib/generated-client/models/base-item-dto.js +0 -14
- package/lib/generated-client/models/base-item-person-image-blur-hashes.js +0 -14
- package/lib/generated-client/models/base-item-person.js +0 -14
- package/lib/generated-client/models/base-item.js +0 -14
- package/lib/generated-client/models/book-info-remote-search-query.js +0 -14
- package/lib/generated-client/models/book-info.js +0 -14
- package/lib/generated-client/models/box-set-info-remote-search-query.js +0 -14
- package/lib/generated-client/models/box-set-info.js +0 -14
- package/lib/generated-client/models/branding-options.js +0 -14
- package/lib/generated-client/models/buffer-request-dto.js +0 -14
- package/lib/generated-client/models/channel-features.js +0 -14
- package/lib/generated-client/models/channel-mapping-options-dto.js +0 -14
- package/lib/generated-client/models/chapter-info.js +0 -14
- package/lib/generated-client/models/client-capabilities-dto.js +0 -14
- package/lib/generated-client/models/client-capabilities.js +0 -14
- package/lib/generated-client/models/client-log-document-response-dto.js +0 -14
- package/lib/generated-client/models/codec-profile.js +0 -14
- package/lib/generated-client/models/collection-creation-result.js +0 -14
- package/lib/generated-client/models/config-image-types.js +0 -14
- package/lib/generated-client/models/configuration-page-info.js +0 -14
- package/lib/generated-client/models/container-profile.js +0 -14
- package/lib/generated-client/models/control-response.js +0 -14
- package/lib/generated-client/models/country-info.js +0 -14
- package/lib/generated-client/models/create-playlist-dto.js +0 -14
- package/lib/generated-client/models/create-user-by-name.js +0 -14
- package/lib/generated-client/models/culture-dto.js +0 -14
- package/lib/generated-client/models/default-directory-browser-info-dto.js +0 -14
- package/lib/generated-client/models/device-identification.js +0 -14
- package/lib/generated-client/models/device-info-query-result.js +0 -14
- package/lib/generated-client/models/device-info.js +0 -14
- package/lib/generated-client/models/device-options-dto.js +0 -14
- package/lib/generated-client/models/device-options.js +0 -14
- package/lib/generated-client/models/device-profile-info.js +0 -14
- package/lib/generated-client/models/device-profile.js +0 -14
- package/lib/generated-client/models/direct-play-profile.js +0 -14
- package/lib/generated-client/models/display-preferences-dto.js +0 -14
- package/lib/generated-client/models/dlna-options.js +0 -14
- package/lib/generated-client/models/encoding-options.js +0 -14
- package/lib/generated-client/models/end-point-info.js +0 -14
- package/lib/generated-client/models/external-id-info.js +0 -14
- package/lib/generated-client/models/external-url.js +0 -14
- package/lib/generated-client/models/file-system-entry-info.js +0 -14
- package/lib/generated-client/models/font-file.js +0 -14
- package/lib/generated-client/models/forgot-password-dto.js +0 -14
- package/lib/generated-client/models/forgot-password-pin-dto.js +0 -14
- package/lib/generated-client/models/forgot-password-result.js +0 -14
- package/lib/generated-client/models/general-command.js +0 -14
- package/lib/generated-client/models/get-programs-dto.js +0 -14
- package/lib/generated-client/models/group-info-dto.js +0 -14
- package/lib/generated-client/models/guide-info.js +0 -14
- package/lib/generated-client/models/http-header-info.js +0 -14
- package/lib/generated-client/models/ignore-wait-request-dto.js +0 -14
- package/lib/generated-client/models/image-by-name-info.js +0 -14
- package/lib/generated-client/models/image-info.js +0 -14
- package/lib/generated-client/models/image-option.js +0 -14
- package/lib/generated-client/models/image-provider-info.js +0 -14
- package/lib/generated-client/models/installation-info.js +0 -14
- package/lib/generated-client/models/iplugin.js +0 -14
- package/lib/generated-client/models/item-counts.js +0 -14
- package/lib/generated-client/models/join-group-request-dto.js +0 -14
- package/lib/generated-client/models/library-option-info-dto.js +0 -14
- package/lib/generated-client/models/library-options-result-dto.js +0 -14
- package/lib/generated-client/models/library-options.js +0 -14
- package/lib/generated-client/models/library-type-options-dto.js +0 -14
- package/lib/generated-client/models/library-update-info.js +0 -14
- package/lib/generated-client/models/listings-provider-info.js +0 -14
- package/lib/generated-client/models/live-stream-response.js +0 -14
- package/lib/generated-client/models/live-tv-info.js +0 -14
- package/lib/generated-client/models/live-tv-options.js +0 -14
- package/lib/generated-client/models/live-tv-service-info.js +0 -14
- package/lib/generated-client/models/localization-option.js +0 -14
- package/lib/generated-client/models/log-file.js +0 -14
- package/lib/generated-client/models/media-attachment.js +0 -14
- package/lib/generated-client/models/media-encoder-path-dto.js +0 -14
- package/lib/generated-client/models/media-path-dto.js +0 -14
- package/lib/generated-client/models/media-path-info.js +0 -14
- package/lib/generated-client/models/media-source-info.js +0 -14
- package/lib/generated-client/models/media-stream.js +0 -14
- package/lib/generated-client/models/media-update-info-dto.js +0 -14
- package/lib/generated-client/models/media-update-info-path-dto.js +0 -14
- package/lib/generated-client/models/media-url.js +0 -14
- package/lib/generated-client/models/message-command.js +0 -14
- package/lib/generated-client/models/metadata-configuration.js +0 -14
- package/lib/generated-client/models/metadata-editor-info.js +0 -14
- package/lib/generated-client/models/metadata-options.js +0 -14
- package/lib/generated-client/models/move-playlist-item-request-dto.js +0 -14
- package/lib/generated-client/models/movie-info-remote-search-query.js +0 -14
- package/lib/generated-client/models/movie-info.js +0 -14
- package/lib/generated-client/models/music-video-info-remote-search-query.js +0 -14
- package/lib/generated-client/models/music-video-info.js +0 -14
- package/lib/generated-client/models/name-guid-pair.js +0 -14
- package/lib/generated-client/models/name-id-pair.js +0 -14
- package/lib/generated-client/models/name-value-pair.js +0 -14
- package/lib/generated-client/models/network-configuration.js +0 -14
- package/lib/generated-client/models/new-group-request-dto.js +0 -14
- package/lib/generated-client/models/next-item-request-dto.js +0 -14
- package/lib/generated-client/models/notification-dto.js +0 -14
- package/lib/generated-client/models/notification-option.js +0 -14
- package/lib/generated-client/models/notification-options.js +0 -14
- package/lib/generated-client/models/notification-result-dto.js +0 -14
- package/lib/generated-client/models/notification-type-info.js +0 -14
- package/lib/generated-client/models/notifications-summary-dto.js +0 -14
- package/lib/generated-client/models/object-group-update.js +0 -14
- package/lib/generated-client/models/open-live-stream-dto.js +0 -14
- package/lib/generated-client/models/package-info.js +0 -14
- package/lib/generated-client/models/parental-rating.js +0 -14
- package/lib/generated-client/models/path-substitution.js +0 -14
- package/lib/generated-client/models/person-lookup-info-remote-search-query.js +0 -14
- package/lib/generated-client/models/person-lookup-info.js +0 -14
- package/lib/generated-client/models/pin-redeem-result.js +0 -14
- package/lib/generated-client/models/ping-request-dto.js +0 -14
- package/lib/generated-client/models/play-request-dto.js +0 -14
- package/lib/generated-client/models/play-request.js +0 -14
- package/lib/generated-client/models/playback-info-dto.js +0 -14
- package/lib/generated-client/models/playback-info-response.js +0 -14
- package/lib/generated-client/models/playback-progress-info.js +0 -14
- package/lib/generated-client/models/playback-start-info.js +0 -14
- package/lib/generated-client/models/playback-stop-info.js +0 -14
- package/lib/generated-client/models/player-state-info.js +0 -14
- package/lib/generated-client/models/playlist-creation-result.js +0 -14
- package/lib/generated-client/models/playstate-request.js +0 -14
- package/lib/generated-client/models/plugin-info.js +0 -14
- package/lib/generated-client/models/previous-item-request-dto.js +0 -14
- package/lib/generated-client/models/problem-details.js +0 -14
- package/lib/generated-client/models/profile-condition.js +0 -14
- package/lib/generated-client/models/public-system-info.js +0 -14
- package/lib/generated-client/models/query-filters-legacy.js +0 -14
- package/lib/generated-client/models/query-filters.js +0 -14
- package/lib/generated-client/models/queue-item.js +0 -14
- package/lib/generated-client/models/queue-request-dto.js +0 -14
- package/lib/generated-client/models/quick-connect-dto.js +0 -14
- package/lib/generated-client/models/quick-connect-result.js +0 -14
- package/lib/generated-client/models/ready-request-dto.js +0 -14
- package/lib/generated-client/models/recommendation-dto.js +0 -14
- package/lib/generated-client/models/remote-image-info.js +0 -14
- package/lib/generated-client/models/remote-image-result.js +0 -14
- package/lib/generated-client/models/remote-search-result.js +0 -14
- package/lib/generated-client/models/remote-subtitle-info.js +0 -14
- package/lib/generated-client/models/remove-from-playlist-request-dto.js +0 -14
- package/lib/generated-client/models/repository-info.js +0 -14
- package/lib/generated-client/models/response-profile.js +0 -14
- package/lib/generated-client/models/search-hint-result.js +0 -14
- package/lib/generated-client/models/search-hint.js +0 -14
- package/lib/generated-client/models/seek-request-dto.js +0 -14
- package/lib/generated-client/models/send-command.js +0 -14
- package/lib/generated-client/models/series-info-remote-search-query.js +0 -14
- package/lib/generated-client/models/series-info.js +0 -14
- package/lib/generated-client/models/series-timer-info-dto-query-result.js +0 -14
- package/lib/generated-client/models/series-timer-info-dto.js +0 -14
- package/lib/generated-client/models/server-configuration.js +0 -14
- package/lib/generated-client/models/server-discovery-info.js +0 -14
- package/lib/generated-client/models/session-info.js +0 -14
- package/lib/generated-client/models/session-user-info.js +0 -14
- package/lib/generated-client/models/set-channel-mapping-dto.js +0 -14
- package/lib/generated-client/models/set-playlist-item-request-dto.js +0 -14
- package/lib/generated-client/models/set-repeat-mode-request-dto.js +0 -14
- package/lib/generated-client/models/set-shuffle-mode-request-dto.js +0 -14
- package/lib/generated-client/models/song-info.js +0 -14
- package/lib/generated-client/models/special-view-option-dto.js +0 -14
- package/lib/generated-client/models/startup-configuration-dto.js +0 -14
- package/lib/generated-client/models/startup-remote-access-dto.js +0 -14
- package/lib/generated-client/models/startup-user-dto.js +0 -14
- package/lib/generated-client/models/subtitle-options.js +0 -14
- package/lib/generated-client/models/subtitle-profile.js +0 -14
- package/lib/generated-client/models/system-info.js +0 -14
- package/lib/generated-client/models/task-info.js +0 -14
- package/lib/generated-client/models/task-result.js +0 -14
- package/lib/generated-client/models/task-trigger-info.js +0 -14
- package/lib/generated-client/models/theme-media-result.js +0 -14
- package/lib/generated-client/models/timer-event-info.js +0 -14
- package/lib/generated-client/models/timer-info-dto-query-result.js +0 -14
- package/lib/generated-client/models/timer-info-dto.js +0 -14
- package/lib/generated-client/models/trailer-info-remote-search-query.js +0 -14
- package/lib/generated-client/models/trailer-info.js +0 -14
- package/lib/generated-client/models/transcoding-info.js +0 -47
- package/lib/generated-client/models/transcoding-profile.js +0 -14
- package/lib/generated-client/models/tuner-channel-mapping.js +0 -14
- package/lib/generated-client/models/tuner-host-info.js +0 -14
- package/lib/generated-client/models/type-options.js +0 -14
- package/lib/generated-client/models/update-library-options-dto.js +0 -14
- package/lib/generated-client/models/update-media-path-request-dto.js +0 -14
- package/lib/generated-client/models/update-user-easy-password.js +0 -14
- package/lib/generated-client/models/update-user-password.js +0 -14
- package/lib/generated-client/models/upload-subtitle-dto.js +0 -14
- package/lib/generated-client/models/user-configuration.js +0 -14
- package/lib/generated-client/models/user-dto.js +0 -14
- package/lib/generated-client/models/user-item-data-dto.js +0 -14
- package/lib/generated-client/models/user-policy.js +0 -14
- package/lib/generated-client/models/utc-time-response.js +0 -14
- package/lib/generated-client/models/validate-path-dto.js +0 -14
- package/lib/generated-client/models/version-info.js +0 -14
- package/lib/generated-client/models/virtual-folder-info.js +0 -14
- package/lib/generated-client/models/wake-on-lan-info.js +0 -14
- package/lib/generated-client/models/xbmc-metadata-options.js +0 -14
- package/lib/generated-client/models/xml-attribute.js +0 -14
- package/lib/models/device-info.js +0 -7
- package/lib/utils/url.js +0 -54
- package/openapi-templates/licenseInfo.mustache +0 -10
- package/tsconfig.json +0 -25
- /package/lib/utils/{normalize-url.d.ts → url/normalize-url.d.ts} +0 -0
|
@@ -1,95 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import globalAxios from 'axios';
|
|
3
|
+
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
|
+
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
|
+
|
|
2
6
|
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6
|
-
* Do not edit the class manually.
|
|
7
|
-
*
|
|
8
|
-
* Jellyfin API
|
|
9
|
-
*
|
|
10
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
11
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
12
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
13
|
-
*/
|
|
14
|
-
var __extends = (this && this.__extends) || (function () {
|
|
15
|
-
var extendStatics = function (d, b) {
|
|
16
|
-
extendStatics = Object.setPrototypeOf ||
|
|
17
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
-
return extendStatics(d, b);
|
|
20
|
-
};
|
|
21
|
-
return function (d, b) {
|
|
22
|
-
if (typeof b !== "function" && b !== null)
|
|
23
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
-
extendStatics(d, b);
|
|
25
|
-
function __() { this.constructor = d; }
|
|
26
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
-
};
|
|
28
|
-
})();
|
|
29
|
-
var __assign = (this && this.__assign) || function () {
|
|
30
|
-
__assign = Object.assign || function(t) {
|
|
31
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32
|
-
s = arguments[i];
|
|
33
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
34
|
-
t[p] = s[p];
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
};
|
|
38
|
-
return __assign.apply(this, arguments);
|
|
39
|
-
};
|
|
40
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
51
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
-
function step(op) {
|
|
54
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
-
while (_) try {
|
|
56
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
57
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
-
switch (op[0]) {
|
|
59
|
-
case 0: case 1: t = op; break;
|
|
60
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
-
default:
|
|
64
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
-
if (t[2]) _.ops.pop();
|
|
69
|
-
_.trys.pop(); continue;
|
|
70
|
-
}
|
|
71
|
-
op = body.call(thisArg, _);
|
|
72
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
77
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
78
|
-
};
|
|
79
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
80
|
-
exports.SessionApi = exports.SessionApiFactory = exports.SessionApiFp = exports.SessionApiAxiosParamCreator = void 0;
|
|
81
|
-
var axios_1 = __importDefault(require("axios"));
|
|
82
|
-
// Some imports not used depending on template conditions
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
var common_1 = require("../common");
|
|
85
|
-
// @ts-ignore
|
|
86
|
-
var base_1 = require("../base");
|
|
87
7
|
/**
|
|
88
8
|
* SessionApi - axios parameter creator
|
|
89
9
|
* @export
|
|
90
10
|
*/
|
|
91
|
-
|
|
92
|
-
var _this = this;
|
|
11
|
+
const SessionApiAxiosParamCreator = function (configuration) {
|
|
93
12
|
return {
|
|
94
13
|
/**
|
|
95
14
|
*
|
|
@@ -99,43 +18,33 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
99
18
|
* @param {*} [options] Override http request option.
|
|
100
19
|
* @throws {RequiredError}
|
|
101
20
|
*/
|
|
102
|
-
addUserToSession:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
131
|
-
return [2 /*return*/, {
|
|
132
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
133
|
-
options: localVarRequestOptions,
|
|
134
|
-
}];
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
},
|
|
21
|
+
addUserToSession: (sessionId, userId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
23
|
+
assertParamExists('addUserToSession', 'sessionId', sessionId);
|
|
24
|
+
// verify required parameter 'userId' is not null or undefined
|
|
25
|
+
assertParamExists('addUserToSession', 'userId', userId);
|
|
26
|
+
const localVarPath = `/Sessions/{sessionId}/User/{userId}`
|
|
27
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
28
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
29
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31
|
+
let baseOptions;
|
|
32
|
+
if (configuration) {
|
|
33
|
+
baseOptions = configuration.baseOptions;
|
|
34
|
+
}
|
|
35
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
36
|
+
const localVarHeaderParameter = {};
|
|
37
|
+
const localVarQueryParameter = {};
|
|
38
|
+
// authentication CustomAuthentication required
|
|
39
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
40
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
43
|
+
return {
|
|
44
|
+
url: toPathString(localVarUrlObj),
|
|
45
|
+
options: localVarRequestOptions,
|
|
46
|
+
};
|
|
47
|
+
}),
|
|
139
48
|
/**
|
|
140
49
|
*
|
|
141
50
|
* @summary Instructs a session to browse to an item or view.
|
|
@@ -146,129 +55,99 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
146
55
|
* @param {*} [options] Override http request option.
|
|
147
56
|
* @throws {RequiredError}
|
|
148
57
|
*/
|
|
149
|
-
displayContent:
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
190
|
-
return [2 /*return*/, {
|
|
191
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
192
|
-
options: localVarRequestOptions,
|
|
193
|
-
}];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
},
|
|
58
|
+
displayContent: (sessionId, itemType, itemId, itemName, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
60
|
+
assertParamExists('displayContent', 'sessionId', sessionId);
|
|
61
|
+
// verify required parameter 'itemType' is not null or undefined
|
|
62
|
+
assertParamExists('displayContent', 'itemType', itemType);
|
|
63
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
64
|
+
assertParamExists('displayContent', 'itemId', itemId);
|
|
65
|
+
// verify required parameter 'itemName' is not null or undefined
|
|
66
|
+
assertParamExists('displayContent', 'itemName', itemName);
|
|
67
|
+
const localVarPath = `/Sessions/{sessionId}/Viewing`
|
|
68
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
69
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
71
|
+
let baseOptions;
|
|
72
|
+
if (configuration) {
|
|
73
|
+
baseOptions = configuration.baseOptions;
|
|
74
|
+
}
|
|
75
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
76
|
+
const localVarHeaderParameter = {};
|
|
77
|
+
const localVarQueryParameter = {};
|
|
78
|
+
// authentication CustomAuthentication required
|
|
79
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
80
|
+
if (itemType !== undefined) {
|
|
81
|
+
localVarQueryParameter['itemType'] = itemType;
|
|
82
|
+
}
|
|
83
|
+
if (itemId !== undefined) {
|
|
84
|
+
localVarQueryParameter['itemId'] = itemId;
|
|
85
|
+
}
|
|
86
|
+
if (itemName !== undefined) {
|
|
87
|
+
localVarQueryParameter['itemName'] = itemName;
|
|
88
|
+
}
|
|
89
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
90
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
91
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
92
|
+
return {
|
|
93
|
+
url: toPathString(localVarUrlObj),
|
|
94
|
+
options: localVarRequestOptions,
|
|
95
|
+
};
|
|
96
|
+
}),
|
|
198
97
|
/**
|
|
199
98
|
*
|
|
200
99
|
* @summary Get all auth providers.
|
|
201
100
|
* @param {*} [options] Override http request option.
|
|
202
101
|
* @throws {RequiredError}
|
|
203
102
|
*/
|
|
204
|
-
getAuthProviders: function (
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
226
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
227
|
-
return [2 /*return*/, {
|
|
228
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
229
|
-
options: localVarRequestOptions,
|
|
230
|
-
}];
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
},
|
|
103
|
+
getAuthProviders: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
const localVarPath = `/Auth/Providers`;
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
}
|
|
111
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
112
|
+
const localVarHeaderParameter = {};
|
|
113
|
+
const localVarQueryParameter = {};
|
|
114
|
+
// authentication CustomAuthentication required
|
|
115
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
116
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
118
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
119
|
+
return {
|
|
120
|
+
url: toPathString(localVarUrlObj),
|
|
121
|
+
options: localVarRequestOptions,
|
|
122
|
+
};
|
|
123
|
+
}),
|
|
235
124
|
/**
|
|
236
125
|
*
|
|
237
126
|
* @summary Get all password reset providers.
|
|
238
127
|
* @param {*} [options] Override http request option.
|
|
239
128
|
* @throws {RequiredError}
|
|
240
129
|
*/
|
|
241
|
-
getPasswordResetProviders: function (
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
263
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
264
|
-
return [2 /*return*/, {
|
|
265
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
266
|
-
options: localVarRequestOptions,
|
|
267
|
-
}];
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
});
|
|
271
|
-
},
|
|
130
|
+
getPasswordResetProviders: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const localVarPath = `/Auth/PasswordResetProviders`;
|
|
132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
134
|
+
let baseOptions;
|
|
135
|
+
if (configuration) {
|
|
136
|
+
baseOptions = configuration.baseOptions;
|
|
137
|
+
}
|
|
138
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
139
|
+
const localVarHeaderParameter = {};
|
|
140
|
+
const localVarQueryParameter = {};
|
|
141
|
+
// authentication CustomAuthentication required
|
|
142
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
143
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
}),
|
|
272
151
|
/**
|
|
273
152
|
*
|
|
274
153
|
* @summary Gets a list of sessions.
|
|
@@ -278,46 +157,36 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
278
157
|
* @param {*} [options] Override http request option.
|
|
279
158
|
* @throws {RequiredError}
|
|
280
159
|
*/
|
|
281
|
-
getSessions:
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
313
|
-
return [2 /*return*/, {
|
|
314
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
315
|
-
options: localVarRequestOptions,
|
|
316
|
-
}];
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
});
|
|
320
|
-
},
|
|
160
|
+
getSessions: (controllableByUserId, deviceId, activeWithinSeconds, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const localVarPath = `/Sessions`;
|
|
162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
163
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
164
|
+
let baseOptions;
|
|
165
|
+
if (configuration) {
|
|
166
|
+
baseOptions = configuration.baseOptions;
|
|
167
|
+
}
|
|
168
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
169
|
+
const localVarHeaderParameter = {};
|
|
170
|
+
const localVarQueryParameter = {};
|
|
171
|
+
// authentication CustomAuthentication required
|
|
172
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
173
|
+
if (controllableByUserId !== undefined) {
|
|
174
|
+
localVarQueryParameter['controllableByUserId'] = controllableByUserId;
|
|
175
|
+
}
|
|
176
|
+
if (deviceId !== undefined) {
|
|
177
|
+
localVarQueryParameter['deviceId'] = deviceId;
|
|
178
|
+
}
|
|
179
|
+
if (activeWithinSeconds !== undefined) {
|
|
180
|
+
localVarQueryParameter['activeWithinSeconds'] = activeWithinSeconds;
|
|
181
|
+
}
|
|
182
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
184
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
185
|
+
return {
|
|
186
|
+
url: toPathString(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
};
|
|
189
|
+
}),
|
|
321
190
|
/**
|
|
322
191
|
*
|
|
323
192
|
* @summary Instructs a session to play an item.
|
|
@@ -332,65 +201,55 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
332
201
|
* @param {*} [options] Override http request option.
|
|
333
202
|
* @throws {RequiredError}
|
|
334
203
|
*/
|
|
335
|
-
play:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
385
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
386
|
-
return [2 /*return*/, {
|
|
387
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
388
|
-
options: localVarRequestOptions,
|
|
389
|
-
}];
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
});
|
|
393
|
-
},
|
|
204
|
+
play: (sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
206
|
+
assertParamExists('play', 'sessionId', sessionId);
|
|
207
|
+
// verify required parameter 'playCommand' is not null or undefined
|
|
208
|
+
assertParamExists('play', 'playCommand', playCommand);
|
|
209
|
+
// verify required parameter 'itemIds' is not null or undefined
|
|
210
|
+
assertParamExists('play', 'itemIds', itemIds);
|
|
211
|
+
const localVarPath = `/Sessions/{sessionId}/Playing`
|
|
212
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
213
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
214
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
215
|
+
let baseOptions;
|
|
216
|
+
if (configuration) {
|
|
217
|
+
baseOptions = configuration.baseOptions;
|
|
218
|
+
}
|
|
219
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
220
|
+
const localVarHeaderParameter = {};
|
|
221
|
+
const localVarQueryParameter = {};
|
|
222
|
+
// authentication CustomAuthentication required
|
|
223
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
224
|
+
if (playCommand !== undefined) {
|
|
225
|
+
localVarQueryParameter['playCommand'] = playCommand;
|
|
226
|
+
}
|
|
227
|
+
if (itemIds) {
|
|
228
|
+
localVarQueryParameter['itemIds'] = itemIds;
|
|
229
|
+
}
|
|
230
|
+
if (startPositionTicks !== undefined) {
|
|
231
|
+
localVarQueryParameter['startPositionTicks'] = startPositionTicks;
|
|
232
|
+
}
|
|
233
|
+
if (mediaSourceId !== undefined) {
|
|
234
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
235
|
+
}
|
|
236
|
+
if (audioStreamIndex !== undefined) {
|
|
237
|
+
localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
|
|
238
|
+
}
|
|
239
|
+
if (subtitleStreamIndex !== undefined) {
|
|
240
|
+
localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
|
|
241
|
+
}
|
|
242
|
+
if (startIndex !== undefined) {
|
|
243
|
+
localVarQueryParameter['startIndex'] = startIndex;
|
|
244
|
+
}
|
|
245
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
248
|
+
return {
|
|
249
|
+
url: toPathString(localVarUrlObj),
|
|
250
|
+
options: localVarRequestOptions,
|
|
251
|
+
};
|
|
252
|
+
}),
|
|
394
253
|
/**
|
|
395
254
|
*
|
|
396
255
|
* @summary Updates capabilities for a device.
|
|
@@ -403,55 +262,45 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
403
262
|
* @param {*} [options] Override http request option.
|
|
404
263
|
* @throws {RequiredError}
|
|
405
264
|
*/
|
|
406
|
-
postCapabilities:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
446
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
447
|
-
return [2 /*return*/, {
|
|
448
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
449
|
-
options: localVarRequestOptions,
|
|
450
|
-
}];
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
});
|
|
454
|
-
},
|
|
265
|
+
postCapabilities: (id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
const localVarPath = `/Sessions/Capabilities`;
|
|
267
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
268
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
269
|
+
let baseOptions;
|
|
270
|
+
if (configuration) {
|
|
271
|
+
baseOptions = configuration.baseOptions;
|
|
272
|
+
}
|
|
273
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
274
|
+
const localVarHeaderParameter = {};
|
|
275
|
+
const localVarQueryParameter = {};
|
|
276
|
+
// authentication CustomAuthentication required
|
|
277
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
278
|
+
if (id !== undefined) {
|
|
279
|
+
localVarQueryParameter['id'] = id;
|
|
280
|
+
}
|
|
281
|
+
if (playableMediaTypes) {
|
|
282
|
+
localVarQueryParameter['playableMediaTypes'] = playableMediaTypes;
|
|
283
|
+
}
|
|
284
|
+
if (supportedCommands) {
|
|
285
|
+
localVarQueryParameter['supportedCommands'] = supportedCommands;
|
|
286
|
+
}
|
|
287
|
+
if (supportsMediaControl !== undefined) {
|
|
288
|
+
localVarQueryParameter['supportsMediaControl'] = supportsMediaControl;
|
|
289
|
+
}
|
|
290
|
+
if (supportsSync !== undefined) {
|
|
291
|
+
localVarQueryParameter['supportsSync'] = supportsSync;
|
|
292
|
+
}
|
|
293
|
+
if (supportsPersistentIdentifier !== undefined) {
|
|
294
|
+
localVarQueryParameter['supportsPersistentIdentifier'] = supportsPersistentIdentifier;
|
|
295
|
+
}
|
|
296
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
299
|
+
return {
|
|
300
|
+
url: toPathString(localVarUrlObj),
|
|
301
|
+
options: localVarRequestOptions,
|
|
302
|
+
};
|
|
303
|
+
}),
|
|
455
304
|
/**
|
|
456
305
|
*
|
|
457
306
|
* @summary Updates capabilities for a device.
|
|
@@ -460,44 +309,34 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
460
309
|
* @param {*} [options] Override http request option.
|
|
461
310
|
* @throws {RequiredError}
|
|
462
311
|
*/
|
|
463
|
-
postFullCapabilities:
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
492
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientCapabilitiesDto, localVarRequestOptions, configuration);
|
|
493
|
-
return [2 /*return*/, {
|
|
494
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
495
|
-
options: localVarRequestOptions,
|
|
496
|
-
}];
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
});
|
|
500
|
-
},
|
|
312
|
+
postFullCapabilities: (clientCapabilitiesDto, id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
// verify required parameter 'clientCapabilitiesDto' is not null or undefined
|
|
314
|
+
assertParamExists('postFullCapabilities', 'clientCapabilitiesDto', clientCapabilitiesDto);
|
|
315
|
+
const localVarPath = `/Sessions/Capabilities/Full`;
|
|
316
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
317
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
318
|
+
let baseOptions;
|
|
319
|
+
if (configuration) {
|
|
320
|
+
baseOptions = configuration.baseOptions;
|
|
321
|
+
}
|
|
322
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
323
|
+
const localVarHeaderParameter = {};
|
|
324
|
+
const localVarQueryParameter = {};
|
|
325
|
+
// authentication CustomAuthentication required
|
|
326
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
327
|
+
if (id !== undefined) {
|
|
328
|
+
localVarQueryParameter['id'] = id;
|
|
329
|
+
}
|
|
330
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
331
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
334
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientCapabilitiesDto, localVarRequestOptions, configuration);
|
|
335
|
+
return {
|
|
336
|
+
url: toPathString(localVarUrlObj),
|
|
337
|
+
options: localVarRequestOptions,
|
|
338
|
+
};
|
|
339
|
+
}),
|
|
501
340
|
/**
|
|
502
341
|
*
|
|
503
342
|
* @summary Removes an additional user from a session.
|
|
@@ -506,80 +345,60 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
506
345
|
* @param {*} [options] Override http request option.
|
|
507
346
|
* @throws {RequiredError}
|
|
508
347
|
*/
|
|
509
|
-
removeUserFromSession:
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
537
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
538
|
-
return [2 /*return*/, {
|
|
539
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
540
|
-
options: localVarRequestOptions,
|
|
541
|
-
}];
|
|
542
|
-
}
|
|
543
|
-
});
|
|
544
|
-
});
|
|
545
|
-
},
|
|
348
|
+
removeUserFromSession: (sessionId, userId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
350
|
+
assertParamExists('removeUserFromSession', 'sessionId', sessionId);
|
|
351
|
+
// verify required parameter 'userId' is not null or undefined
|
|
352
|
+
assertParamExists('removeUserFromSession', 'userId', userId);
|
|
353
|
+
const localVarPath = `/Sessions/{sessionId}/User/{userId}`
|
|
354
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
355
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
358
|
+
let baseOptions;
|
|
359
|
+
if (configuration) {
|
|
360
|
+
baseOptions = configuration.baseOptions;
|
|
361
|
+
}
|
|
362
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
363
|
+
const localVarHeaderParameter = {};
|
|
364
|
+
const localVarQueryParameter = {};
|
|
365
|
+
// authentication CustomAuthentication required
|
|
366
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
367
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
368
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
369
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
370
|
+
return {
|
|
371
|
+
url: toPathString(localVarUrlObj),
|
|
372
|
+
options: localVarRequestOptions,
|
|
373
|
+
};
|
|
374
|
+
}),
|
|
546
375
|
/**
|
|
547
376
|
*
|
|
548
377
|
* @summary Reports that a session has ended.
|
|
549
378
|
* @param {*} [options] Override http request option.
|
|
550
379
|
* @throws {RequiredError}
|
|
551
380
|
*/
|
|
552
|
-
reportSessionEnded: function (
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
574
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
575
|
-
return [2 /*return*/, {
|
|
576
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
577
|
-
options: localVarRequestOptions,
|
|
578
|
-
}];
|
|
579
|
-
}
|
|
580
|
-
});
|
|
581
|
-
});
|
|
582
|
-
},
|
|
381
|
+
reportSessionEnded: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
const localVarPath = `/Sessions/Logout`;
|
|
383
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
384
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
385
|
+
let baseOptions;
|
|
386
|
+
if (configuration) {
|
|
387
|
+
baseOptions = configuration.baseOptions;
|
|
388
|
+
}
|
|
389
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
390
|
+
const localVarHeaderParameter = {};
|
|
391
|
+
const localVarQueryParameter = {};
|
|
392
|
+
// authentication CustomAuthentication required
|
|
393
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
394
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
395
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
396
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
397
|
+
return {
|
|
398
|
+
url: toPathString(localVarUrlObj),
|
|
399
|
+
options: localVarRequestOptions,
|
|
400
|
+
};
|
|
401
|
+
}),
|
|
583
402
|
/**
|
|
584
403
|
*
|
|
585
404
|
* @summary Reports that a session is viewing an item.
|
|
@@ -588,45 +407,35 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
588
407
|
* @param {*} [options] Override http request option.
|
|
589
408
|
* @throws {RequiredError}
|
|
590
409
|
*/
|
|
591
|
-
reportViewing:
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
621
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
622
|
-
return [2 /*return*/, {
|
|
623
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
624
|
-
options: localVarRequestOptions,
|
|
625
|
-
}];
|
|
626
|
-
}
|
|
627
|
-
});
|
|
628
|
-
});
|
|
629
|
-
},
|
|
410
|
+
reportViewing: (itemId, sessionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
411
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
412
|
+
assertParamExists('reportViewing', 'itemId', itemId);
|
|
413
|
+
const localVarPath = `/Sessions/Viewing`;
|
|
414
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
415
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
416
|
+
let baseOptions;
|
|
417
|
+
if (configuration) {
|
|
418
|
+
baseOptions = configuration.baseOptions;
|
|
419
|
+
}
|
|
420
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
421
|
+
const localVarHeaderParameter = {};
|
|
422
|
+
const localVarQueryParameter = {};
|
|
423
|
+
// authentication CustomAuthentication required
|
|
424
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
425
|
+
if (sessionId !== undefined) {
|
|
426
|
+
localVarQueryParameter['sessionId'] = sessionId;
|
|
427
|
+
}
|
|
428
|
+
if (itemId !== undefined) {
|
|
429
|
+
localVarQueryParameter['itemId'] = itemId;
|
|
430
|
+
}
|
|
431
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
432
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
433
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
434
|
+
return {
|
|
435
|
+
url: toPathString(localVarUrlObj),
|
|
436
|
+
options: localVarRequestOptions,
|
|
437
|
+
};
|
|
438
|
+
}),
|
|
630
439
|
/**
|
|
631
440
|
*
|
|
632
441
|
* @summary Issues a full general command to a client.
|
|
@@ -635,44 +444,34 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
635
444
|
* @param {*} [options] Override http request option.
|
|
636
445
|
* @throws {RequiredError}
|
|
637
446
|
*/
|
|
638
|
-
sendFullGeneralCommand:
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
667
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(generalCommand, localVarRequestOptions, configuration);
|
|
668
|
-
return [2 /*return*/, {
|
|
669
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
670
|
-
options: localVarRequestOptions,
|
|
671
|
-
}];
|
|
672
|
-
}
|
|
673
|
-
});
|
|
674
|
-
});
|
|
675
|
-
},
|
|
447
|
+
sendFullGeneralCommand: (sessionId, generalCommand, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
448
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
449
|
+
assertParamExists('sendFullGeneralCommand', 'sessionId', sessionId);
|
|
450
|
+
// verify required parameter 'generalCommand' is not null or undefined
|
|
451
|
+
assertParamExists('sendFullGeneralCommand', 'generalCommand', generalCommand);
|
|
452
|
+
const localVarPath = `/Sessions/{sessionId}/Command`
|
|
453
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
454
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
455
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
456
|
+
let baseOptions;
|
|
457
|
+
if (configuration) {
|
|
458
|
+
baseOptions = configuration.baseOptions;
|
|
459
|
+
}
|
|
460
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
461
|
+
const localVarHeaderParameter = {};
|
|
462
|
+
const localVarQueryParameter = {};
|
|
463
|
+
// authentication CustomAuthentication required
|
|
464
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
465
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
466
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
467
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
468
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
469
|
+
localVarRequestOptions.data = serializeDataIfNeeded(generalCommand, localVarRequestOptions, configuration);
|
|
470
|
+
return {
|
|
471
|
+
url: toPathString(localVarUrlObj),
|
|
472
|
+
options: localVarRequestOptions,
|
|
473
|
+
};
|
|
474
|
+
}),
|
|
676
475
|
/**
|
|
677
476
|
*
|
|
678
477
|
* @summary Issues a general command to a client.
|
|
@@ -681,43 +480,33 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
681
480
|
* @param {*} [options] Override http request option.
|
|
682
481
|
* @throws {RequiredError}
|
|
683
482
|
*/
|
|
684
|
-
sendGeneralCommand:
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
712
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
713
|
-
return [2 /*return*/, {
|
|
714
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
715
|
-
options: localVarRequestOptions,
|
|
716
|
-
}];
|
|
717
|
-
}
|
|
718
|
-
});
|
|
719
|
-
});
|
|
720
|
-
},
|
|
483
|
+
sendGeneralCommand: (sessionId, command, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
484
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
485
|
+
assertParamExists('sendGeneralCommand', 'sessionId', sessionId);
|
|
486
|
+
// verify required parameter 'command' is not null or undefined
|
|
487
|
+
assertParamExists('sendGeneralCommand', 'command', command);
|
|
488
|
+
const localVarPath = `/Sessions/{sessionId}/Command/{command}`
|
|
489
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
490
|
+
.replace(`{${"command"}}`, encodeURIComponent(String(command)));
|
|
491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
492
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
493
|
+
let baseOptions;
|
|
494
|
+
if (configuration) {
|
|
495
|
+
baseOptions = configuration.baseOptions;
|
|
496
|
+
}
|
|
497
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
498
|
+
const localVarHeaderParameter = {};
|
|
499
|
+
const localVarQueryParameter = {};
|
|
500
|
+
// authentication CustomAuthentication required
|
|
501
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
502
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
503
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
504
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
505
|
+
return {
|
|
506
|
+
url: toPathString(localVarUrlObj),
|
|
507
|
+
options: localVarRequestOptions,
|
|
508
|
+
};
|
|
509
|
+
}),
|
|
721
510
|
/**
|
|
722
511
|
*
|
|
723
512
|
* @summary Issues a command to a client to display a message to the user.
|
|
@@ -726,44 +515,34 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
726
515
|
* @param {*} [options] Override http request option.
|
|
727
516
|
* @throws {RequiredError}
|
|
728
517
|
*/
|
|
729
|
-
sendMessageCommand:
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
758
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(messageCommand, localVarRequestOptions, configuration);
|
|
759
|
-
return [2 /*return*/, {
|
|
760
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
761
|
-
options: localVarRequestOptions,
|
|
762
|
-
}];
|
|
763
|
-
}
|
|
764
|
-
});
|
|
765
|
-
});
|
|
766
|
-
},
|
|
518
|
+
sendMessageCommand: (sessionId, messageCommand, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
519
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
520
|
+
assertParamExists('sendMessageCommand', 'sessionId', sessionId);
|
|
521
|
+
// verify required parameter 'messageCommand' is not null or undefined
|
|
522
|
+
assertParamExists('sendMessageCommand', 'messageCommand', messageCommand);
|
|
523
|
+
const localVarPath = `/Sessions/{sessionId}/Message`
|
|
524
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
525
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
526
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
527
|
+
let baseOptions;
|
|
528
|
+
if (configuration) {
|
|
529
|
+
baseOptions = configuration.baseOptions;
|
|
530
|
+
}
|
|
531
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
532
|
+
const localVarHeaderParameter = {};
|
|
533
|
+
const localVarQueryParameter = {};
|
|
534
|
+
// authentication CustomAuthentication required
|
|
535
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
536
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
537
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
539
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
540
|
+
localVarRequestOptions.data = serializeDataIfNeeded(messageCommand, localVarRequestOptions, configuration);
|
|
541
|
+
return {
|
|
542
|
+
url: toPathString(localVarUrlObj),
|
|
543
|
+
options: localVarRequestOptions,
|
|
544
|
+
};
|
|
545
|
+
}),
|
|
767
546
|
/**
|
|
768
547
|
*
|
|
769
548
|
* @summary Issues a playstate command to a client.
|
|
@@ -774,49 +553,39 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
774
553
|
* @param {*} [options] Override http request option.
|
|
775
554
|
* @throws {RequiredError}
|
|
776
555
|
*/
|
|
777
|
-
sendPlaystateCommand:
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
811
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
812
|
-
return [2 /*return*/, {
|
|
813
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
814
|
-
options: localVarRequestOptions,
|
|
815
|
-
}];
|
|
816
|
-
}
|
|
817
|
-
});
|
|
818
|
-
});
|
|
819
|
-
},
|
|
556
|
+
sendPlaystateCommand: (sessionId, command, seekPositionTicks, controllingUserId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
557
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
558
|
+
assertParamExists('sendPlaystateCommand', 'sessionId', sessionId);
|
|
559
|
+
// verify required parameter 'command' is not null or undefined
|
|
560
|
+
assertParamExists('sendPlaystateCommand', 'command', command);
|
|
561
|
+
const localVarPath = `/Sessions/{sessionId}/Playing/{command}`
|
|
562
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
563
|
+
.replace(`{${"command"}}`, encodeURIComponent(String(command)));
|
|
564
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
565
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
566
|
+
let baseOptions;
|
|
567
|
+
if (configuration) {
|
|
568
|
+
baseOptions = configuration.baseOptions;
|
|
569
|
+
}
|
|
570
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
571
|
+
const localVarHeaderParameter = {};
|
|
572
|
+
const localVarQueryParameter = {};
|
|
573
|
+
// authentication CustomAuthentication required
|
|
574
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
575
|
+
if (seekPositionTicks !== undefined) {
|
|
576
|
+
localVarQueryParameter['seekPositionTicks'] = seekPositionTicks;
|
|
577
|
+
}
|
|
578
|
+
if (controllingUserId !== undefined) {
|
|
579
|
+
localVarQueryParameter['controllingUserId'] = controllingUserId;
|
|
580
|
+
}
|
|
581
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
582
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
583
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
584
|
+
return {
|
|
585
|
+
url: toPathString(localVarUrlObj),
|
|
586
|
+
options: localVarRequestOptions,
|
|
587
|
+
};
|
|
588
|
+
}),
|
|
820
589
|
/**
|
|
821
590
|
*
|
|
822
591
|
* @summary Issues a system command to a client.
|
|
@@ -825,52 +594,41 @@ var SessionApiAxiosParamCreator = function (configuration) {
|
|
|
825
594
|
* @param {*} [options] Override http request option.
|
|
826
595
|
* @throws {RequiredError}
|
|
827
596
|
*/
|
|
828
|
-
sendSystemCommand:
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
856
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
857
|
-
return [2 /*return*/, {
|
|
858
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
859
|
-
options: localVarRequestOptions,
|
|
860
|
-
}];
|
|
861
|
-
}
|
|
862
|
-
});
|
|
863
|
-
});
|
|
864
|
-
},
|
|
597
|
+
sendSystemCommand: (sessionId, command, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
598
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
599
|
+
assertParamExists('sendSystemCommand', 'sessionId', sessionId);
|
|
600
|
+
// verify required parameter 'command' is not null or undefined
|
|
601
|
+
assertParamExists('sendSystemCommand', 'command', command);
|
|
602
|
+
const localVarPath = `/Sessions/{sessionId}/System/{command}`
|
|
603
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
604
|
+
.replace(`{${"command"}}`, encodeURIComponent(String(command)));
|
|
605
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
606
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
607
|
+
let baseOptions;
|
|
608
|
+
if (configuration) {
|
|
609
|
+
baseOptions = configuration.baseOptions;
|
|
610
|
+
}
|
|
611
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
612
|
+
const localVarHeaderParameter = {};
|
|
613
|
+
const localVarQueryParameter = {};
|
|
614
|
+
// authentication CustomAuthentication required
|
|
615
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
616
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
617
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
618
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
619
|
+
return {
|
|
620
|
+
url: toPathString(localVarUrlObj),
|
|
621
|
+
options: localVarRequestOptions,
|
|
622
|
+
};
|
|
623
|
+
}),
|
|
865
624
|
};
|
|
866
625
|
};
|
|
867
|
-
exports.SessionApiAxiosParamCreator = SessionApiAxiosParamCreator;
|
|
868
626
|
/**
|
|
869
627
|
* SessionApi - functional programming interface
|
|
870
628
|
* @export
|
|
871
629
|
*/
|
|
872
|
-
|
|
873
|
-
|
|
630
|
+
const SessionApiFp = function (configuration) {
|
|
631
|
+
const localVarAxiosParamCreator = SessionApiAxiosParamCreator(configuration);
|
|
874
632
|
return {
|
|
875
633
|
/**
|
|
876
634
|
*
|
|
@@ -880,17 +638,10 @@ var SessionApiFp = function (configuration) {
|
|
|
880
638
|
* @param {*} [options] Override http request option.
|
|
881
639
|
* @throws {RequiredError}
|
|
882
640
|
*/
|
|
883
|
-
addUserToSession
|
|
884
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
885
|
-
|
|
886
|
-
return
|
|
887
|
-
switch (_a.label) {
|
|
888
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addUserToSession(sessionId, userId, options)];
|
|
889
|
-
case 1:
|
|
890
|
-
localVarAxiosArgs = _a.sent();
|
|
891
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
892
|
-
}
|
|
893
|
-
});
|
|
641
|
+
addUserToSession(sessionId, userId, options) {
|
|
642
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
643
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addUserToSession(sessionId, userId, options);
|
|
644
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
894
645
|
});
|
|
895
646
|
},
|
|
896
647
|
/**
|
|
@@ -903,17 +654,10 @@ var SessionApiFp = function (configuration) {
|
|
|
903
654
|
* @param {*} [options] Override http request option.
|
|
904
655
|
* @throws {RequiredError}
|
|
905
656
|
*/
|
|
906
|
-
displayContent
|
|
907
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
908
|
-
|
|
909
|
-
return
|
|
910
|
-
switch (_a.label) {
|
|
911
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.displayContent(sessionId, itemType, itemId, itemName, options)];
|
|
912
|
-
case 1:
|
|
913
|
-
localVarAxiosArgs = _a.sent();
|
|
914
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
915
|
-
}
|
|
916
|
-
});
|
|
657
|
+
displayContent(sessionId, itemType, itemId, itemName, options) {
|
|
658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
659
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.displayContent(sessionId, itemType, itemId, itemName, options);
|
|
660
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
917
661
|
});
|
|
918
662
|
},
|
|
919
663
|
/**
|
|
@@ -922,17 +666,10 @@ var SessionApiFp = function (configuration) {
|
|
|
922
666
|
* @param {*} [options] Override http request option.
|
|
923
667
|
* @throws {RequiredError}
|
|
924
668
|
*/
|
|
925
|
-
getAuthProviders
|
|
926
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
927
|
-
|
|
928
|
-
return
|
|
929
|
-
switch (_a.label) {
|
|
930
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAuthProviders(options)];
|
|
931
|
-
case 1:
|
|
932
|
-
localVarAxiosArgs = _a.sent();
|
|
933
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
934
|
-
}
|
|
935
|
-
});
|
|
669
|
+
getAuthProviders(options) {
|
|
670
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
671
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAuthProviders(options);
|
|
672
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
936
673
|
});
|
|
937
674
|
},
|
|
938
675
|
/**
|
|
@@ -941,17 +678,10 @@ var SessionApiFp = function (configuration) {
|
|
|
941
678
|
* @param {*} [options] Override http request option.
|
|
942
679
|
* @throws {RequiredError}
|
|
943
680
|
*/
|
|
944
|
-
getPasswordResetProviders
|
|
945
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
946
|
-
|
|
947
|
-
return
|
|
948
|
-
switch (_a.label) {
|
|
949
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPasswordResetProviders(options)];
|
|
950
|
-
case 1:
|
|
951
|
-
localVarAxiosArgs = _a.sent();
|
|
952
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
953
|
-
}
|
|
954
|
-
});
|
|
681
|
+
getPasswordResetProviders(options) {
|
|
682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPasswordResetProviders(options);
|
|
684
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
955
685
|
});
|
|
956
686
|
},
|
|
957
687
|
/**
|
|
@@ -963,17 +693,10 @@ var SessionApiFp = function (configuration) {
|
|
|
963
693
|
* @param {*} [options] Override http request option.
|
|
964
694
|
* @throws {RequiredError}
|
|
965
695
|
*/
|
|
966
|
-
getSessions
|
|
967
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
968
|
-
|
|
969
|
-
return
|
|
970
|
-
switch (_a.label) {
|
|
971
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options)];
|
|
972
|
-
case 1:
|
|
973
|
-
localVarAxiosArgs = _a.sent();
|
|
974
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
975
|
-
}
|
|
976
|
-
});
|
|
696
|
+
getSessions(controllableByUserId, deviceId, activeWithinSeconds, options) {
|
|
697
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options);
|
|
699
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
977
700
|
});
|
|
978
701
|
},
|
|
979
702
|
/**
|
|
@@ -990,17 +713,10 @@ var SessionApiFp = function (configuration) {
|
|
|
990
713
|
* @param {*} [options] Override http request option.
|
|
991
714
|
* @throws {RequiredError}
|
|
992
715
|
*/
|
|
993
|
-
play
|
|
994
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
995
|
-
|
|
996
|
-
return
|
|
997
|
-
switch (_a.label) {
|
|
998
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options)];
|
|
999
|
-
case 1:
|
|
1000
|
-
localVarAxiosArgs = _a.sent();
|
|
1001
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1002
|
-
}
|
|
1003
|
-
});
|
|
716
|
+
play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
|
|
717
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
718
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options);
|
|
719
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1004
720
|
});
|
|
1005
721
|
},
|
|
1006
722
|
/**
|
|
@@ -1015,17 +731,10 @@ var SessionApiFp = function (configuration) {
|
|
|
1015
731
|
* @param {*} [options] Override http request option.
|
|
1016
732
|
* @throws {RequiredError}
|
|
1017
733
|
*/
|
|
1018
|
-
postCapabilities
|
|
1019
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1020
|
-
|
|
1021
|
-
return
|
|
1022
|
-
switch (_a.label) {
|
|
1023
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options)];
|
|
1024
|
-
case 1:
|
|
1025
|
-
localVarAxiosArgs = _a.sent();
|
|
1026
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1027
|
-
}
|
|
1028
|
-
});
|
|
734
|
+
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options) {
|
|
735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
736
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options);
|
|
737
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1029
738
|
});
|
|
1030
739
|
},
|
|
1031
740
|
/**
|
|
@@ -1036,17 +745,10 @@ var SessionApiFp = function (configuration) {
|
|
|
1036
745
|
* @param {*} [options] Override http request option.
|
|
1037
746
|
* @throws {RequiredError}
|
|
1038
747
|
*/
|
|
1039
|
-
postFullCapabilities
|
|
1040
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1041
|
-
|
|
1042
|
-
return
|
|
1043
|
-
switch (_a.label) {
|
|
1044
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postFullCapabilities(clientCapabilitiesDto, id, options)];
|
|
1045
|
-
case 1:
|
|
1046
|
-
localVarAxiosArgs = _a.sent();
|
|
1047
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1048
|
-
}
|
|
1049
|
-
});
|
|
748
|
+
postFullCapabilities(clientCapabilitiesDto, id, options) {
|
|
749
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
750
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postFullCapabilities(clientCapabilitiesDto, id, options);
|
|
751
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1050
752
|
});
|
|
1051
753
|
},
|
|
1052
754
|
/**
|
|
@@ -1057,17 +759,10 @@ var SessionApiFp = function (configuration) {
|
|
|
1057
759
|
* @param {*} [options] Override http request option.
|
|
1058
760
|
* @throws {RequiredError}
|
|
1059
761
|
*/
|
|
1060
|
-
removeUserFromSession
|
|
1061
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1062
|
-
|
|
1063
|
-
return
|
|
1064
|
-
switch (_a.label) {
|
|
1065
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeUserFromSession(sessionId, userId, options)];
|
|
1066
|
-
case 1:
|
|
1067
|
-
localVarAxiosArgs = _a.sent();
|
|
1068
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
762
|
+
removeUserFromSession(sessionId, userId, options) {
|
|
763
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
764
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeUserFromSession(sessionId, userId, options);
|
|
765
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1071
766
|
});
|
|
1072
767
|
},
|
|
1073
768
|
/**
|
|
@@ -1076,17 +771,10 @@ var SessionApiFp = function (configuration) {
|
|
|
1076
771
|
* @param {*} [options] Override http request option.
|
|
1077
772
|
* @throws {RequiredError}
|
|
1078
773
|
*/
|
|
1079
|
-
reportSessionEnded
|
|
1080
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1081
|
-
|
|
1082
|
-
return
|
|
1083
|
-
switch (_a.label) {
|
|
1084
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportSessionEnded(options)];
|
|
1085
|
-
case 1:
|
|
1086
|
-
localVarAxiosArgs = _a.sent();
|
|
1087
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1088
|
-
}
|
|
1089
|
-
});
|
|
774
|
+
reportSessionEnded(options) {
|
|
775
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
776
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportSessionEnded(options);
|
|
777
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1090
778
|
});
|
|
1091
779
|
},
|
|
1092
780
|
/**
|
|
@@ -1097,17 +785,10 @@ var SessionApiFp = function (configuration) {
|
|
|
1097
785
|
* @param {*} [options] Override http request option.
|
|
1098
786
|
* @throws {RequiredError}
|
|
1099
787
|
*/
|
|
1100
|
-
reportViewing
|
|
1101
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1102
|
-
|
|
1103
|
-
return
|
|
1104
|
-
switch (_a.label) {
|
|
1105
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportViewing(itemId, sessionId, options)];
|
|
1106
|
-
case 1:
|
|
1107
|
-
localVarAxiosArgs = _a.sent();
|
|
1108
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1109
|
-
}
|
|
1110
|
-
});
|
|
788
|
+
reportViewing(itemId, sessionId, options) {
|
|
789
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
790
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportViewing(itemId, sessionId, options);
|
|
791
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1111
792
|
});
|
|
1112
793
|
},
|
|
1113
794
|
/**
|
|
@@ -1118,17 +799,10 @@ var SessionApiFp = function (configuration) {
|
|
|
1118
799
|
* @param {*} [options] Override http request option.
|
|
1119
800
|
* @throws {RequiredError}
|
|
1120
801
|
*/
|
|
1121
|
-
sendFullGeneralCommand
|
|
1122
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1123
|
-
|
|
1124
|
-
return
|
|
1125
|
-
switch (_a.label) {
|
|
1126
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendFullGeneralCommand(sessionId, generalCommand, options)];
|
|
1127
|
-
case 1:
|
|
1128
|
-
localVarAxiosArgs = _a.sent();
|
|
1129
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1130
|
-
}
|
|
1131
|
-
});
|
|
802
|
+
sendFullGeneralCommand(sessionId, generalCommand, options) {
|
|
803
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
804
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendFullGeneralCommand(sessionId, generalCommand, options);
|
|
805
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1132
806
|
});
|
|
1133
807
|
},
|
|
1134
808
|
/**
|
|
@@ -1139,17 +813,10 @@ var SessionApiFp = function (configuration) {
|
|
|
1139
813
|
* @param {*} [options] Override http request option.
|
|
1140
814
|
* @throws {RequiredError}
|
|
1141
815
|
*/
|
|
1142
|
-
sendGeneralCommand
|
|
1143
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1144
|
-
|
|
1145
|
-
return
|
|
1146
|
-
switch (_a.label) {
|
|
1147
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendGeneralCommand(sessionId, command, options)];
|
|
1148
|
-
case 1:
|
|
1149
|
-
localVarAxiosArgs = _a.sent();
|
|
1150
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
816
|
+
sendGeneralCommand(sessionId, command, options) {
|
|
817
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
818
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendGeneralCommand(sessionId, command, options);
|
|
819
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1153
820
|
});
|
|
1154
821
|
},
|
|
1155
822
|
/**
|
|
@@ -1160,17 +827,10 @@ var SessionApiFp = function (configuration) {
|
|
|
1160
827
|
* @param {*} [options] Override http request option.
|
|
1161
828
|
* @throws {RequiredError}
|
|
1162
829
|
*/
|
|
1163
|
-
sendMessageCommand
|
|
1164
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1165
|
-
|
|
1166
|
-
return
|
|
1167
|
-
switch (_a.label) {
|
|
1168
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendMessageCommand(sessionId, messageCommand, options)];
|
|
1169
|
-
case 1:
|
|
1170
|
-
localVarAxiosArgs = _a.sent();
|
|
1171
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1172
|
-
}
|
|
1173
|
-
});
|
|
830
|
+
sendMessageCommand(sessionId, messageCommand, options) {
|
|
831
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
832
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendMessageCommand(sessionId, messageCommand, options);
|
|
833
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1174
834
|
});
|
|
1175
835
|
},
|
|
1176
836
|
/**
|
|
@@ -1183,17 +843,10 @@ var SessionApiFp = function (configuration) {
|
|
|
1183
843
|
* @param {*} [options] Override http request option.
|
|
1184
844
|
* @throws {RequiredError}
|
|
1185
845
|
*/
|
|
1186
|
-
sendPlaystateCommand
|
|
1187
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1188
|
-
|
|
1189
|
-
return
|
|
1190
|
-
switch (_a.label) {
|
|
1191
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options)];
|
|
1192
|
-
case 1:
|
|
1193
|
-
localVarAxiosArgs = _a.sent();
|
|
1194
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1195
|
-
}
|
|
1196
|
-
});
|
|
846
|
+
sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options) {
|
|
847
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
848
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options);
|
|
849
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1197
850
|
});
|
|
1198
851
|
},
|
|
1199
852
|
/**
|
|
@@ -1204,28 +857,20 @@ var SessionApiFp = function (configuration) {
|
|
|
1204
857
|
* @param {*} [options] Override http request option.
|
|
1205
858
|
* @throws {RequiredError}
|
|
1206
859
|
*/
|
|
1207
|
-
sendSystemCommand
|
|
1208
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1209
|
-
|
|
1210
|
-
return
|
|
1211
|
-
switch (_a.label) {
|
|
1212
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendSystemCommand(sessionId, command, options)];
|
|
1213
|
-
case 1:
|
|
1214
|
-
localVarAxiosArgs = _a.sent();
|
|
1215
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1216
|
-
}
|
|
1217
|
-
});
|
|
860
|
+
sendSystemCommand(sessionId, command, options) {
|
|
861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
862
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendSystemCommand(sessionId, command, options);
|
|
863
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1218
864
|
});
|
|
1219
865
|
},
|
|
1220
866
|
};
|
|
1221
867
|
};
|
|
1222
|
-
exports.SessionApiFp = SessionApiFp;
|
|
1223
868
|
/**
|
|
1224
869
|
* SessionApi - factory interface
|
|
1225
870
|
* @export
|
|
1226
871
|
*/
|
|
1227
|
-
|
|
1228
|
-
|
|
872
|
+
const SessionApiFactory = function (configuration, basePath, axios) {
|
|
873
|
+
const localVarFp = SessionApiFp(configuration);
|
|
1229
874
|
return {
|
|
1230
875
|
/**
|
|
1231
876
|
*
|
|
@@ -1235,8 +880,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1235
880
|
* @param {*} [options] Override http request option.
|
|
1236
881
|
* @throws {RequiredError}
|
|
1237
882
|
*/
|
|
1238
|
-
addUserToSession
|
|
1239
|
-
return localVarFp.addUserToSession(sessionId, userId, options).then(
|
|
883
|
+
addUserToSession(sessionId, userId, options) {
|
|
884
|
+
return localVarFp.addUserToSession(sessionId, userId, options).then((request) => request(axios, basePath));
|
|
1240
885
|
},
|
|
1241
886
|
/**
|
|
1242
887
|
*
|
|
@@ -1248,8 +893,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1248
893
|
* @param {*} [options] Override http request option.
|
|
1249
894
|
* @throws {RequiredError}
|
|
1250
895
|
*/
|
|
1251
|
-
displayContent
|
|
1252
|
-
return localVarFp.displayContent(sessionId, itemType, itemId, itemName, options).then(
|
|
896
|
+
displayContent(sessionId, itemType, itemId, itemName, options) {
|
|
897
|
+
return localVarFp.displayContent(sessionId, itemType, itemId, itemName, options).then((request) => request(axios, basePath));
|
|
1253
898
|
},
|
|
1254
899
|
/**
|
|
1255
900
|
*
|
|
@@ -1257,8 +902,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1257
902
|
* @param {*} [options] Override http request option.
|
|
1258
903
|
* @throws {RequiredError}
|
|
1259
904
|
*/
|
|
1260
|
-
getAuthProviders
|
|
1261
|
-
return localVarFp.getAuthProviders(options).then(
|
|
905
|
+
getAuthProviders(options) {
|
|
906
|
+
return localVarFp.getAuthProviders(options).then((request) => request(axios, basePath));
|
|
1262
907
|
},
|
|
1263
908
|
/**
|
|
1264
909
|
*
|
|
@@ -1266,8 +911,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1266
911
|
* @param {*} [options] Override http request option.
|
|
1267
912
|
* @throws {RequiredError}
|
|
1268
913
|
*/
|
|
1269
|
-
getPasswordResetProviders
|
|
1270
|
-
return localVarFp.getPasswordResetProviders(options).then(
|
|
914
|
+
getPasswordResetProviders(options) {
|
|
915
|
+
return localVarFp.getPasswordResetProviders(options).then((request) => request(axios, basePath));
|
|
1271
916
|
},
|
|
1272
917
|
/**
|
|
1273
918
|
*
|
|
@@ -1278,8 +923,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1278
923
|
* @param {*} [options] Override http request option.
|
|
1279
924
|
* @throws {RequiredError}
|
|
1280
925
|
*/
|
|
1281
|
-
getSessions
|
|
1282
|
-
return localVarFp.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options).then(
|
|
926
|
+
getSessions(controllableByUserId, deviceId, activeWithinSeconds, options) {
|
|
927
|
+
return localVarFp.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options).then((request) => request(axios, basePath));
|
|
1283
928
|
},
|
|
1284
929
|
/**
|
|
1285
930
|
*
|
|
@@ -1295,8 +940,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1295
940
|
* @param {*} [options] Override http request option.
|
|
1296
941
|
* @throws {RequiredError}
|
|
1297
942
|
*/
|
|
1298
|
-
play
|
|
1299
|
-
return localVarFp.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options).then(
|
|
943
|
+
play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
|
|
944
|
+
return localVarFp.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options).then((request) => request(axios, basePath));
|
|
1300
945
|
},
|
|
1301
946
|
/**
|
|
1302
947
|
*
|
|
@@ -1310,8 +955,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1310
955
|
* @param {*} [options] Override http request option.
|
|
1311
956
|
* @throws {RequiredError}
|
|
1312
957
|
*/
|
|
1313
|
-
postCapabilities
|
|
1314
|
-
return localVarFp.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options).then(
|
|
958
|
+
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options) {
|
|
959
|
+
return localVarFp.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsSync, supportsPersistentIdentifier, options).then((request) => request(axios, basePath));
|
|
1315
960
|
},
|
|
1316
961
|
/**
|
|
1317
962
|
*
|
|
@@ -1321,8 +966,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1321
966
|
* @param {*} [options] Override http request option.
|
|
1322
967
|
* @throws {RequiredError}
|
|
1323
968
|
*/
|
|
1324
|
-
postFullCapabilities
|
|
1325
|
-
return localVarFp.postFullCapabilities(clientCapabilitiesDto, id, options).then(
|
|
969
|
+
postFullCapabilities(clientCapabilitiesDto, id, options) {
|
|
970
|
+
return localVarFp.postFullCapabilities(clientCapabilitiesDto, id, options).then((request) => request(axios, basePath));
|
|
1326
971
|
},
|
|
1327
972
|
/**
|
|
1328
973
|
*
|
|
@@ -1332,8 +977,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1332
977
|
* @param {*} [options] Override http request option.
|
|
1333
978
|
* @throws {RequiredError}
|
|
1334
979
|
*/
|
|
1335
|
-
removeUserFromSession
|
|
1336
|
-
return localVarFp.removeUserFromSession(sessionId, userId, options).then(
|
|
980
|
+
removeUserFromSession(sessionId, userId, options) {
|
|
981
|
+
return localVarFp.removeUserFromSession(sessionId, userId, options).then((request) => request(axios, basePath));
|
|
1337
982
|
},
|
|
1338
983
|
/**
|
|
1339
984
|
*
|
|
@@ -1341,8 +986,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1341
986
|
* @param {*} [options] Override http request option.
|
|
1342
987
|
* @throws {RequiredError}
|
|
1343
988
|
*/
|
|
1344
|
-
reportSessionEnded
|
|
1345
|
-
return localVarFp.reportSessionEnded(options).then(
|
|
989
|
+
reportSessionEnded(options) {
|
|
990
|
+
return localVarFp.reportSessionEnded(options).then((request) => request(axios, basePath));
|
|
1346
991
|
},
|
|
1347
992
|
/**
|
|
1348
993
|
*
|
|
@@ -1352,8 +997,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1352
997
|
* @param {*} [options] Override http request option.
|
|
1353
998
|
* @throws {RequiredError}
|
|
1354
999
|
*/
|
|
1355
|
-
reportViewing
|
|
1356
|
-
return localVarFp.reportViewing(itemId, sessionId, options).then(
|
|
1000
|
+
reportViewing(itemId, sessionId, options) {
|
|
1001
|
+
return localVarFp.reportViewing(itemId, sessionId, options).then((request) => request(axios, basePath));
|
|
1357
1002
|
},
|
|
1358
1003
|
/**
|
|
1359
1004
|
*
|
|
@@ -1363,8 +1008,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1363
1008
|
* @param {*} [options] Override http request option.
|
|
1364
1009
|
* @throws {RequiredError}
|
|
1365
1010
|
*/
|
|
1366
|
-
sendFullGeneralCommand
|
|
1367
|
-
return localVarFp.sendFullGeneralCommand(sessionId, generalCommand, options).then(
|
|
1011
|
+
sendFullGeneralCommand(sessionId, generalCommand, options) {
|
|
1012
|
+
return localVarFp.sendFullGeneralCommand(sessionId, generalCommand, options).then((request) => request(axios, basePath));
|
|
1368
1013
|
},
|
|
1369
1014
|
/**
|
|
1370
1015
|
*
|
|
@@ -1374,8 +1019,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1374
1019
|
* @param {*} [options] Override http request option.
|
|
1375
1020
|
* @throws {RequiredError}
|
|
1376
1021
|
*/
|
|
1377
|
-
sendGeneralCommand
|
|
1378
|
-
return localVarFp.sendGeneralCommand(sessionId, command, options).then(
|
|
1022
|
+
sendGeneralCommand(sessionId, command, options) {
|
|
1023
|
+
return localVarFp.sendGeneralCommand(sessionId, command, options).then((request) => request(axios, basePath));
|
|
1379
1024
|
},
|
|
1380
1025
|
/**
|
|
1381
1026
|
*
|
|
@@ -1385,8 +1030,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1385
1030
|
* @param {*} [options] Override http request option.
|
|
1386
1031
|
* @throws {RequiredError}
|
|
1387
1032
|
*/
|
|
1388
|
-
sendMessageCommand
|
|
1389
|
-
return localVarFp.sendMessageCommand(sessionId, messageCommand, options).then(
|
|
1033
|
+
sendMessageCommand(sessionId, messageCommand, options) {
|
|
1034
|
+
return localVarFp.sendMessageCommand(sessionId, messageCommand, options).then((request) => request(axios, basePath));
|
|
1390
1035
|
},
|
|
1391
1036
|
/**
|
|
1392
1037
|
*
|
|
@@ -1398,8 +1043,8 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1398
1043
|
* @param {*} [options] Override http request option.
|
|
1399
1044
|
* @throws {RequiredError}
|
|
1400
1045
|
*/
|
|
1401
|
-
sendPlaystateCommand
|
|
1402
|
-
return localVarFp.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options).then(
|
|
1046
|
+
sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options) {
|
|
1047
|
+
return localVarFp.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options).then((request) => request(axios, basePath));
|
|
1403
1048
|
},
|
|
1404
1049
|
/**
|
|
1405
1050
|
*
|
|
@@ -1409,23 +1054,18 @@ var SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
1409
1054
|
* @param {*} [options] Override http request option.
|
|
1410
1055
|
* @throws {RequiredError}
|
|
1411
1056
|
*/
|
|
1412
|
-
sendSystemCommand
|
|
1413
|
-
return localVarFp.sendSystemCommand(sessionId, command, options).then(
|
|
1057
|
+
sendSystemCommand(sessionId, command, options) {
|
|
1058
|
+
return localVarFp.sendSystemCommand(sessionId, command, options).then((request) => request(axios, basePath));
|
|
1414
1059
|
},
|
|
1415
1060
|
};
|
|
1416
1061
|
};
|
|
1417
|
-
exports.SessionApiFactory = SessionApiFactory;
|
|
1418
1062
|
/**
|
|
1419
1063
|
* SessionApi - object-oriented interface
|
|
1420
1064
|
* @export
|
|
1421
1065
|
* @class SessionApi
|
|
1422
1066
|
* @extends {BaseAPI}
|
|
1423
1067
|
*/
|
|
1424
|
-
|
|
1425
|
-
__extends(SessionApi, _super);
|
|
1426
|
-
function SessionApi() {
|
|
1427
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1428
|
-
}
|
|
1068
|
+
class SessionApi extends BaseAPI {
|
|
1429
1069
|
/**
|
|
1430
1070
|
*
|
|
1431
1071
|
* @summary Adds an additional user to a session.
|
|
@@ -1434,10 +1074,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1434
1074
|
* @throws {RequiredError}
|
|
1435
1075
|
* @memberof SessionApi
|
|
1436
1076
|
*/
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
};
|
|
1077
|
+
addUserToSession(requestParameters, options) {
|
|
1078
|
+
return SessionApiFp(this.configuration).addUserToSession(requestParameters.sessionId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1079
|
+
}
|
|
1441
1080
|
/**
|
|
1442
1081
|
*
|
|
1443
1082
|
* @summary Instructs a session to browse to an item or view.
|
|
@@ -1446,10 +1085,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1446
1085
|
* @throws {RequiredError}
|
|
1447
1086
|
* @memberof SessionApi
|
|
1448
1087
|
*/
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
};
|
|
1088
|
+
displayContent(requestParameters, options) {
|
|
1089
|
+
return SessionApiFp(this.configuration).displayContent(requestParameters.sessionId, requestParameters.itemType, requestParameters.itemId, requestParameters.itemName, options).then((request) => request(this.axios, this.basePath));
|
|
1090
|
+
}
|
|
1453
1091
|
/**
|
|
1454
1092
|
*
|
|
1455
1093
|
* @summary Get all auth providers.
|
|
@@ -1457,10 +1095,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1457
1095
|
* @throws {RequiredError}
|
|
1458
1096
|
* @memberof SessionApi
|
|
1459
1097
|
*/
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
};
|
|
1098
|
+
getAuthProviders(options) {
|
|
1099
|
+
return SessionApiFp(this.configuration).getAuthProviders(options).then((request) => request(this.axios, this.basePath));
|
|
1100
|
+
}
|
|
1464
1101
|
/**
|
|
1465
1102
|
*
|
|
1466
1103
|
* @summary Get all password reset providers.
|
|
@@ -1468,10 +1105,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1468
1105
|
* @throws {RequiredError}
|
|
1469
1106
|
* @memberof SessionApi
|
|
1470
1107
|
*/
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
};
|
|
1108
|
+
getPasswordResetProviders(options) {
|
|
1109
|
+
return SessionApiFp(this.configuration).getPasswordResetProviders(options).then((request) => request(this.axios, this.basePath));
|
|
1110
|
+
}
|
|
1475
1111
|
/**
|
|
1476
1112
|
*
|
|
1477
1113
|
* @summary Gets a list of sessions.
|
|
@@ -1480,11 +1116,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1480
1116
|
* @throws {RequiredError}
|
|
1481
1117
|
* @memberof SessionApi
|
|
1482
1118
|
*/
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
return (0, exports.SessionApiFp)(this.configuration).getSessions(requestParameters.controllableByUserId, requestParameters.deviceId, requestParameters.activeWithinSeconds, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1487
|
-
};
|
|
1119
|
+
getSessions(requestParameters = {}, options) {
|
|
1120
|
+
return SessionApiFp(this.configuration).getSessions(requestParameters.controllableByUserId, requestParameters.deviceId, requestParameters.activeWithinSeconds, options).then((request) => request(this.axios, this.basePath));
|
|
1121
|
+
}
|
|
1488
1122
|
/**
|
|
1489
1123
|
*
|
|
1490
1124
|
* @summary Instructs a session to play an item.
|
|
@@ -1493,10 +1127,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1493
1127
|
* @throws {RequiredError}
|
|
1494
1128
|
* @memberof SessionApi
|
|
1495
1129
|
*/
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
};
|
|
1130
|
+
play(requestParameters, options) {
|
|
1131
|
+
return SessionApiFp(this.configuration).play(requestParameters.sessionId, requestParameters.playCommand, requestParameters.itemIds, requestParameters.startPositionTicks, requestParameters.mediaSourceId, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.startIndex, options).then((request) => request(this.axios, this.basePath));
|
|
1132
|
+
}
|
|
1500
1133
|
/**
|
|
1501
1134
|
*
|
|
1502
1135
|
* @summary Updates capabilities for a device.
|
|
@@ -1505,11 +1138,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1505
1138
|
* @throws {RequiredError}
|
|
1506
1139
|
* @memberof SessionApi
|
|
1507
1140
|
*/
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
return (0, exports.SessionApiFp)(this.configuration).postCapabilities(requestParameters.id, requestParameters.playableMediaTypes, requestParameters.supportedCommands, requestParameters.supportsMediaControl, requestParameters.supportsSync, requestParameters.supportsPersistentIdentifier, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1512
|
-
};
|
|
1141
|
+
postCapabilities(requestParameters = {}, options) {
|
|
1142
|
+
return SessionApiFp(this.configuration).postCapabilities(requestParameters.id, requestParameters.playableMediaTypes, requestParameters.supportedCommands, requestParameters.supportsMediaControl, requestParameters.supportsSync, requestParameters.supportsPersistentIdentifier, options).then((request) => request(this.axios, this.basePath));
|
|
1143
|
+
}
|
|
1513
1144
|
/**
|
|
1514
1145
|
*
|
|
1515
1146
|
* @summary Updates capabilities for a device.
|
|
@@ -1518,10 +1149,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1518
1149
|
* @throws {RequiredError}
|
|
1519
1150
|
* @memberof SessionApi
|
|
1520
1151
|
*/
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
};
|
|
1152
|
+
postFullCapabilities(requestParameters, options) {
|
|
1153
|
+
return SessionApiFp(this.configuration).postFullCapabilities(requestParameters.clientCapabilitiesDto, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1154
|
+
}
|
|
1525
1155
|
/**
|
|
1526
1156
|
*
|
|
1527
1157
|
* @summary Removes an additional user from a session.
|
|
@@ -1530,10 +1160,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1530
1160
|
* @throws {RequiredError}
|
|
1531
1161
|
* @memberof SessionApi
|
|
1532
1162
|
*/
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
};
|
|
1163
|
+
removeUserFromSession(requestParameters, options) {
|
|
1164
|
+
return SessionApiFp(this.configuration).removeUserFromSession(requestParameters.sessionId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1165
|
+
}
|
|
1537
1166
|
/**
|
|
1538
1167
|
*
|
|
1539
1168
|
* @summary Reports that a session has ended.
|
|
@@ -1541,10 +1170,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1541
1170
|
* @throws {RequiredError}
|
|
1542
1171
|
* @memberof SessionApi
|
|
1543
1172
|
*/
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
};
|
|
1173
|
+
reportSessionEnded(options) {
|
|
1174
|
+
return SessionApiFp(this.configuration).reportSessionEnded(options).then((request) => request(this.axios, this.basePath));
|
|
1175
|
+
}
|
|
1548
1176
|
/**
|
|
1549
1177
|
*
|
|
1550
1178
|
* @summary Reports that a session is viewing an item.
|
|
@@ -1553,10 +1181,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1553
1181
|
* @throws {RequiredError}
|
|
1554
1182
|
* @memberof SessionApi
|
|
1555
1183
|
*/
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
};
|
|
1184
|
+
reportViewing(requestParameters, options) {
|
|
1185
|
+
return SessionApiFp(this.configuration).reportViewing(requestParameters.itemId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1186
|
+
}
|
|
1560
1187
|
/**
|
|
1561
1188
|
*
|
|
1562
1189
|
* @summary Issues a full general command to a client.
|
|
@@ -1565,10 +1192,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1565
1192
|
* @throws {RequiredError}
|
|
1566
1193
|
* @memberof SessionApi
|
|
1567
1194
|
*/
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
};
|
|
1195
|
+
sendFullGeneralCommand(requestParameters, options) {
|
|
1196
|
+
return SessionApiFp(this.configuration).sendFullGeneralCommand(requestParameters.sessionId, requestParameters.generalCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1197
|
+
}
|
|
1572
1198
|
/**
|
|
1573
1199
|
*
|
|
1574
1200
|
* @summary Issues a general command to a client.
|
|
@@ -1577,10 +1203,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1577
1203
|
* @throws {RequiredError}
|
|
1578
1204
|
* @memberof SessionApi
|
|
1579
1205
|
*/
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
};
|
|
1206
|
+
sendGeneralCommand(requestParameters, options) {
|
|
1207
|
+
return SessionApiFp(this.configuration).sendGeneralCommand(requestParameters.sessionId, requestParameters.command, options).then((request) => request(this.axios, this.basePath));
|
|
1208
|
+
}
|
|
1584
1209
|
/**
|
|
1585
1210
|
*
|
|
1586
1211
|
* @summary Issues a command to a client to display a message to the user.
|
|
@@ -1589,10 +1214,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1589
1214
|
* @throws {RequiredError}
|
|
1590
1215
|
* @memberof SessionApi
|
|
1591
1216
|
*/
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
};
|
|
1217
|
+
sendMessageCommand(requestParameters, options) {
|
|
1218
|
+
return SessionApiFp(this.configuration).sendMessageCommand(requestParameters.sessionId, requestParameters.messageCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1219
|
+
}
|
|
1596
1220
|
/**
|
|
1597
1221
|
*
|
|
1598
1222
|
* @summary Issues a playstate command to a client.
|
|
@@ -1601,10 +1225,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1601
1225
|
* @throws {RequiredError}
|
|
1602
1226
|
* @memberof SessionApi
|
|
1603
1227
|
*/
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
};
|
|
1228
|
+
sendPlaystateCommand(requestParameters, options) {
|
|
1229
|
+
return SessionApiFp(this.configuration).sendPlaystateCommand(requestParameters.sessionId, requestParameters.command, requestParameters.seekPositionTicks, requestParameters.controllingUserId, options).then((request) => request(this.axios, this.basePath));
|
|
1230
|
+
}
|
|
1608
1231
|
/**
|
|
1609
1232
|
*
|
|
1610
1233
|
* @summary Issues a system command to a client.
|
|
@@ -1613,10 +1236,9 @@ var SessionApi = /** @class */ (function (_super) {
|
|
|
1613
1236
|
* @throws {RequiredError}
|
|
1614
1237
|
* @memberof SessionApi
|
|
1615
1238
|
*/
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
}
|
|
1622
|
-
exports.SessionApi = SessionApi;
|
|
1239
|
+
sendSystemCommand(requestParameters, options) {
|
|
1240
|
+
return SessionApiFp(this.configuration).sendSystemCommand(requestParameters.sessionId, requestParameters.command, options).then((request) => request(this.axios, this.basePath));
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
export { SessionApi, SessionApiAxiosParamCreator, SessionApiFactory, SessionApiFp };
|