@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.PlaystateApi = exports.PlaystateApiFactory = exports.PlaystateApiFp = exports.PlaystateApiAxiosParamCreator = 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
|
* PlaystateApi - axios parameter creator
|
|
89
9
|
* @export
|
|
90
10
|
*/
|
|
91
|
-
|
|
92
|
-
var _this = this;
|
|
11
|
+
const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
93
12
|
return {
|
|
94
13
|
/**
|
|
95
14
|
*
|
|
@@ -100,48 +19,38 @@ var PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
100
19
|
* @param {*} [options] Override http request option.
|
|
101
20
|
* @throws {RequiredError}
|
|
102
21
|
*/
|
|
103
|
-
markPlayedItem:
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
137
|
-
return [2 /*return*/, {
|
|
138
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
139
|
-
options: localVarRequestOptions,
|
|
140
|
-
}];
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
},
|
|
22
|
+
markPlayedItem: (userId, itemId, datePlayed, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
// verify required parameter 'userId' is not null or undefined
|
|
24
|
+
assertParamExists('markPlayedItem', 'userId', userId);
|
|
25
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
26
|
+
assertParamExists('markPlayedItem', 'itemId', itemId);
|
|
27
|
+
const localVarPath = `/Users/{userId}/PlayedItems/{itemId}`
|
|
28
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
29
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
30
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32
|
+
let baseOptions;
|
|
33
|
+
if (configuration) {
|
|
34
|
+
baseOptions = configuration.baseOptions;
|
|
35
|
+
}
|
|
36
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
37
|
+
const localVarHeaderParameter = {};
|
|
38
|
+
const localVarQueryParameter = {};
|
|
39
|
+
// authentication CustomAuthentication required
|
|
40
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
41
|
+
if (datePlayed !== undefined) {
|
|
42
|
+
localVarQueryParameter['datePlayed'] = (datePlayed instanceof Date) ?
|
|
43
|
+
datePlayed.toISOString() :
|
|
44
|
+
datePlayed;
|
|
45
|
+
}
|
|
46
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
47
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
49
|
+
return {
|
|
50
|
+
url: toPathString(localVarUrlObj),
|
|
51
|
+
options: localVarRequestOptions,
|
|
52
|
+
};
|
|
53
|
+
}),
|
|
145
54
|
/**
|
|
146
55
|
*
|
|
147
56
|
* @summary Marks an item as unplayed for user.
|
|
@@ -150,43 +59,33 @@ var PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
150
59
|
* @param {*} [options] Override http request option.
|
|
151
60
|
* @throws {RequiredError}
|
|
152
61
|
*/
|
|
153
|
-
markUnplayedItem:
|
|
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
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
182
|
-
return [2 /*return*/, {
|
|
183
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
184
|
-
options: localVarRequestOptions,
|
|
185
|
-
}];
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
},
|
|
62
|
+
markUnplayedItem: (userId, itemId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
// verify required parameter 'userId' is not null or undefined
|
|
64
|
+
assertParamExists('markUnplayedItem', 'userId', userId);
|
|
65
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
66
|
+
assertParamExists('markUnplayedItem', 'itemId', itemId);
|
|
67
|
+
const localVarPath = `/Users/{userId}/PlayedItems/{itemId}`
|
|
68
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
69
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
70
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
71
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
72
|
+
let baseOptions;
|
|
73
|
+
if (configuration) {
|
|
74
|
+
baseOptions = configuration.baseOptions;
|
|
75
|
+
}
|
|
76
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
77
|
+
const localVarHeaderParameter = {};
|
|
78
|
+
const localVarQueryParameter = {};
|
|
79
|
+
// authentication CustomAuthentication required
|
|
80
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
84
|
+
return {
|
|
85
|
+
url: toPathString(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
}),
|
|
190
89
|
/**
|
|
191
90
|
*
|
|
192
91
|
* @summary Reports a user\'s playback progress.
|
|
@@ -206,76 +105,66 @@ var PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
206
105
|
* @param {*} [options] Override http request option.
|
|
207
106
|
* @throws {RequiredError}
|
|
208
107
|
*/
|
|
209
|
-
onPlaybackProgress:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
270
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
271
|
-
return [2 /*return*/, {
|
|
272
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
273
|
-
options: localVarRequestOptions,
|
|
274
|
-
}];
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
});
|
|
278
|
-
},
|
|
108
|
+
onPlaybackProgress: (userId, itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
// verify required parameter 'userId' is not null or undefined
|
|
110
|
+
assertParamExists('onPlaybackProgress', 'userId', userId);
|
|
111
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
112
|
+
assertParamExists('onPlaybackProgress', 'itemId', itemId);
|
|
113
|
+
const localVarPath = `/Users/{userId}/PlayingItems/{itemId}/Progress`
|
|
114
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
115
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
118
|
+
let baseOptions;
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
}
|
|
122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
+
const localVarHeaderParameter = {};
|
|
124
|
+
const localVarQueryParameter = {};
|
|
125
|
+
// authentication CustomAuthentication required
|
|
126
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
127
|
+
if (mediaSourceId !== undefined) {
|
|
128
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
129
|
+
}
|
|
130
|
+
if (positionTicks !== undefined) {
|
|
131
|
+
localVarQueryParameter['positionTicks'] = positionTicks;
|
|
132
|
+
}
|
|
133
|
+
if (audioStreamIndex !== undefined) {
|
|
134
|
+
localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
|
|
135
|
+
}
|
|
136
|
+
if (subtitleStreamIndex !== undefined) {
|
|
137
|
+
localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
|
|
138
|
+
}
|
|
139
|
+
if (volumeLevel !== undefined) {
|
|
140
|
+
localVarQueryParameter['volumeLevel'] = volumeLevel;
|
|
141
|
+
}
|
|
142
|
+
if (playMethod !== undefined) {
|
|
143
|
+
localVarQueryParameter['playMethod'] = playMethod;
|
|
144
|
+
}
|
|
145
|
+
if (liveStreamId !== undefined) {
|
|
146
|
+
localVarQueryParameter['liveStreamId'] = liveStreamId;
|
|
147
|
+
}
|
|
148
|
+
if (playSessionId !== undefined) {
|
|
149
|
+
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
150
|
+
}
|
|
151
|
+
if (repeatMode !== undefined) {
|
|
152
|
+
localVarQueryParameter['repeatMode'] = repeatMode;
|
|
153
|
+
}
|
|
154
|
+
if (isPaused !== undefined) {
|
|
155
|
+
localVarQueryParameter['isPaused'] = isPaused;
|
|
156
|
+
}
|
|
157
|
+
if (isMuted !== undefined) {
|
|
158
|
+
localVarQueryParameter['isMuted'] = isMuted;
|
|
159
|
+
}
|
|
160
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
161
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
162
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
163
|
+
return {
|
|
164
|
+
url: toPathString(localVarUrlObj),
|
|
165
|
+
options: localVarRequestOptions,
|
|
166
|
+
};
|
|
167
|
+
}),
|
|
279
168
|
/**
|
|
280
169
|
*
|
|
281
170
|
* @summary Reports that a user has begun playing an item.
|
|
@@ -291,64 +180,54 @@ var PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
291
180
|
* @param {*} [options] Override http request option.
|
|
292
181
|
* @throws {RequiredError}
|
|
293
182
|
*/
|
|
294
|
-
onPlaybackStart:
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
343
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
344
|
-
return [2 /*return*/, {
|
|
345
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
346
|
-
options: localVarRequestOptions,
|
|
347
|
-
}];
|
|
348
|
-
}
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
},
|
|
183
|
+
onPlaybackStart: (userId, itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
184
|
+
// verify required parameter 'userId' is not null or undefined
|
|
185
|
+
assertParamExists('onPlaybackStart', 'userId', userId);
|
|
186
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
187
|
+
assertParamExists('onPlaybackStart', 'itemId', itemId);
|
|
188
|
+
const localVarPath = `/Users/{userId}/PlayingItems/{itemId}`
|
|
189
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
190
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
193
|
+
let baseOptions;
|
|
194
|
+
if (configuration) {
|
|
195
|
+
baseOptions = configuration.baseOptions;
|
|
196
|
+
}
|
|
197
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
198
|
+
const localVarHeaderParameter = {};
|
|
199
|
+
const localVarQueryParameter = {};
|
|
200
|
+
// authentication CustomAuthentication required
|
|
201
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
202
|
+
if (mediaSourceId !== undefined) {
|
|
203
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
204
|
+
}
|
|
205
|
+
if (audioStreamIndex !== undefined) {
|
|
206
|
+
localVarQueryParameter['audioStreamIndex'] = audioStreamIndex;
|
|
207
|
+
}
|
|
208
|
+
if (subtitleStreamIndex !== undefined) {
|
|
209
|
+
localVarQueryParameter['subtitleStreamIndex'] = subtitleStreamIndex;
|
|
210
|
+
}
|
|
211
|
+
if (playMethod !== undefined) {
|
|
212
|
+
localVarQueryParameter['playMethod'] = playMethod;
|
|
213
|
+
}
|
|
214
|
+
if (liveStreamId !== undefined) {
|
|
215
|
+
localVarQueryParameter['liveStreamId'] = liveStreamId;
|
|
216
|
+
}
|
|
217
|
+
if (playSessionId !== undefined) {
|
|
218
|
+
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
219
|
+
}
|
|
220
|
+
if (canSeek !== undefined) {
|
|
221
|
+
localVarQueryParameter['canSeek'] = canSeek;
|
|
222
|
+
}
|
|
223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
226
|
+
return {
|
|
227
|
+
url: toPathString(localVarUrlObj),
|
|
228
|
+
options: localVarRequestOptions,
|
|
229
|
+
};
|
|
230
|
+
}),
|
|
352
231
|
/**
|
|
353
232
|
*
|
|
354
233
|
* @summary Reports that a user has stopped playing an item.
|
|
@@ -362,58 +241,48 @@ var PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
362
241
|
* @param {*} [options] Override http request option.
|
|
363
242
|
* @throws {RequiredError}
|
|
364
243
|
*/
|
|
365
|
-
onPlaybackStopped:
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
408
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
409
|
-
return [2 /*return*/, {
|
|
410
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
411
|
-
options: localVarRequestOptions,
|
|
412
|
-
}];
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
});
|
|
416
|
-
},
|
|
244
|
+
onPlaybackStopped: (userId, itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
245
|
+
// verify required parameter 'userId' is not null or undefined
|
|
246
|
+
assertParamExists('onPlaybackStopped', 'userId', userId);
|
|
247
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
248
|
+
assertParamExists('onPlaybackStopped', 'itemId', itemId);
|
|
249
|
+
const localVarPath = `/Users/{userId}/PlayingItems/{itemId}`
|
|
250
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
251
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
254
|
+
let baseOptions;
|
|
255
|
+
if (configuration) {
|
|
256
|
+
baseOptions = configuration.baseOptions;
|
|
257
|
+
}
|
|
258
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
259
|
+
const localVarHeaderParameter = {};
|
|
260
|
+
const localVarQueryParameter = {};
|
|
261
|
+
// authentication CustomAuthentication required
|
|
262
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
263
|
+
if (mediaSourceId !== undefined) {
|
|
264
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
265
|
+
}
|
|
266
|
+
if (nextMediaType !== undefined) {
|
|
267
|
+
localVarQueryParameter['nextMediaType'] = nextMediaType;
|
|
268
|
+
}
|
|
269
|
+
if (positionTicks !== undefined) {
|
|
270
|
+
localVarQueryParameter['positionTicks'] = positionTicks;
|
|
271
|
+
}
|
|
272
|
+
if (liveStreamId !== undefined) {
|
|
273
|
+
localVarQueryParameter['liveStreamId'] = liveStreamId;
|
|
274
|
+
}
|
|
275
|
+
if (playSessionId !== undefined) {
|
|
276
|
+
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
277
|
+
}
|
|
278
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
281
|
+
return {
|
|
282
|
+
url: toPathString(localVarUrlObj),
|
|
283
|
+
options: localVarRequestOptions,
|
|
284
|
+
};
|
|
285
|
+
}),
|
|
417
286
|
/**
|
|
418
287
|
*
|
|
419
288
|
* @summary Pings a playback session.
|
|
@@ -421,42 +290,32 @@ var PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
421
290
|
* @param {*} [options] Override http request option.
|
|
422
291
|
* @throws {RequiredError}
|
|
423
292
|
*/
|
|
424
|
-
pingPlaybackSession:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
451
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
452
|
-
return [2 /*return*/, {
|
|
453
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
454
|
-
options: localVarRequestOptions,
|
|
455
|
-
}];
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
});
|
|
459
|
-
},
|
|
293
|
+
pingPlaybackSession: (playSessionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
// verify required parameter 'playSessionId' is not null or undefined
|
|
295
|
+
assertParamExists('pingPlaybackSession', 'playSessionId', playSessionId);
|
|
296
|
+
const localVarPath = `/Sessions/Playing/Ping`;
|
|
297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
298
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
299
|
+
let baseOptions;
|
|
300
|
+
if (configuration) {
|
|
301
|
+
baseOptions = configuration.baseOptions;
|
|
302
|
+
}
|
|
303
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
304
|
+
const localVarHeaderParameter = {};
|
|
305
|
+
const localVarQueryParameter = {};
|
|
306
|
+
// authentication CustomAuthentication required
|
|
307
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
308
|
+
if (playSessionId !== undefined) {
|
|
309
|
+
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
310
|
+
}
|
|
311
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
312
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
313
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
314
|
+
return {
|
|
315
|
+
url: toPathString(localVarUrlObj),
|
|
316
|
+
options: localVarRequestOptions,
|
|
317
|
+
};
|
|
318
|
+
}),
|
|
460
319
|
/**
|
|
461
320
|
*
|
|
462
321
|
* @summary Reports playback progress within a session.
|
|
@@ -464,39 +323,29 @@ var PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
464
323
|
* @param {*} [options] Override http request option.
|
|
465
324
|
* @throws {RequiredError}
|
|
466
325
|
*/
|
|
467
|
-
reportPlaybackProgress:
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
491
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(playbackProgressInfo, localVarRequestOptions, configuration);
|
|
492
|
-
return [2 /*return*/, {
|
|
493
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
494
|
-
options: localVarRequestOptions,
|
|
495
|
-
}];
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
});
|
|
499
|
-
},
|
|
326
|
+
reportPlaybackProgress: (playbackProgressInfo, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
const localVarPath = `/Sessions/Playing/Progress`;
|
|
328
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
329
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
330
|
+
let baseOptions;
|
|
331
|
+
if (configuration) {
|
|
332
|
+
baseOptions = configuration.baseOptions;
|
|
333
|
+
}
|
|
334
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
335
|
+
const localVarHeaderParameter = {};
|
|
336
|
+
const localVarQueryParameter = {};
|
|
337
|
+
// authentication CustomAuthentication required
|
|
338
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
339
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
340
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
341
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
342
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
343
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playbackProgressInfo, localVarRequestOptions, configuration);
|
|
344
|
+
return {
|
|
345
|
+
url: toPathString(localVarUrlObj),
|
|
346
|
+
options: localVarRequestOptions,
|
|
347
|
+
};
|
|
348
|
+
}),
|
|
500
349
|
/**
|
|
501
350
|
*
|
|
502
351
|
* @summary Reports playback has started within a session.
|
|
@@ -504,39 +353,29 @@ var PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
504
353
|
* @param {*} [options] Override http request option.
|
|
505
354
|
* @throws {RequiredError}
|
|
506
355
|
*/
|
|
507
|
-
reportPlaybackStart:
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
531
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(playbackStartInfo, localVarRequestOptions, configuration);
|
|
532
|
-
return [2 /*return*/, {
|
|
533
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
534
|
-
options: localVarRequestOptions,
|
|
535
|
-
}];
|
|
536
|
-
}
|
|
537
|
-
});
|
|
538
|
-
});
|
|
539
|
-
},
|
|
356
|
+
reportPlaybackStart: (playbackStartInfo, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
357
|
+
const localVarPath = `/Sessions/Playing`;
|
|
358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
359
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
360
|
+
let baseOptions;
|
|
361
|
+
if (configuration) {
|
|
362
|
+
baseOptions = configuration.baseOptions;
|
|
363
|
+
}
|
|
364
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
365
|
+
const localVarHeaderParameter = {};
|
|
366
|
+
const localVarQueryParameter = {};
|
|
367
|
+
// authentication CustomAuthentication required
|
|
368
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
369
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
373
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playbackStartInfo, localVarRequestOptions, configuration);
|
|
374
|
+
return {
|
|
375
|
+
url: toPathString(localVarUrlObj),
|
|
376
|
+
options: localVarRequestOptions,
|
|
377
|
+
};
|
|
378
|
+
}),
|
|
540
379
|
/**
|
|
541
380
|
*
|
|
542
381
|
* @summary Reports playback has stopped within a session.
|
|
@@ -544,48 +383,37 @@ var PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
544
383
|
* @param {*} [options] Override http request option.
|
|
545
384
|
* @throws {RequiredError}
|
|
546
385
|
*/
|
|
547
|
-
reportPlaybackStopped:
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
571
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(playbackStopInfo, localVarRequestOptions, configuration);
|
|
572
|
-
return [2 /*return*/, {
|
|
573
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
574
|
-
options: localVarRequestOptions,
|
|
575
|
-
}];
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
});
|
|
579
|
-
},
|
|
386
|
+
reportPlaybackStopped: (playbackStopInfo, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
const localVarPath = `/Sessions/Playing/Stopped`;
|
|
388
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
389
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
390
|
+
let baseOptions;
|
|
391
|
+
if (configuration) {
|
|
392
|
+
baseOptions = configuration.baseOptions;
|
|
393
|
+
}
|
|
394
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
395
|
+
const localVarHeaderParameter = {};
|
|
396
|
+
const localVarQueryParameter = {};
|
|
397
|
+
// authentication CustomAuthentication required
|
|
398
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
399
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
400
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
401
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
402
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
403
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playbackStopInfo, localVarRequestOptions, configuration);
|
|
404
|
+
return {
|
|
405
|
+
url: toPathString(localVarUrlObj),
|
|
406
|
+
options: localVarRequestOptions,
|
|
407
|
+
};
|
|
408
|
+
}),
|
|
580
409
|
};
|
|
581
410
|
};
|
|
582
|
-
exports.PlaystateApiAxiosParamCreator = PlaystateApiAxiosParamCreator;
|
|
583
411
|
/**
|
|
584
412
|
* PlaystateApi - functional programming interface
|
|
585
413
|
* @export
|
|
586
414
|
*/
|
|
587
|
-
|
|
588
|
-
|
|
415
|
+
const PlaystateApiFp = function (configuration) {
|
|
416
|
+
const localVarAxiosParamCreator = PlaystateApiAxiosParamCreator(configuration);
|
|
589
417
|
return {
|
|
590
418
|
/**
|
|
591
419
|
*
|
|
@@ -596,17 +424,10 @@ var PlaystateApiFp = function (configuration) {
|
|
|
596
424
|
* @param {*} [options] Override http request option.
|
|
597
425
|
* @throws {RequiredError}
|
|
598
426
|
*/
|
|
599
|
-
markPlayedItem
|
|
600
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
601
|
-
|
|
602
|
-
return
|
|
603
|
-
switch (_a.label) {
|
|
604
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.markPlayedItem(userId, itemId, datePlayed, options)];
|
|
605
|
-
case 1:
|
|
606
|
-
localVarAxiosArgs = _a.sent();
|
|
607
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
608
|
-
}
|
|
609
|
-
});
|
|
427
|
+
markPlayedItem(userId, itemId, datePlayed, options) {
|
|
428
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
429
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markPlayedItem(userId, itemId, datePlayed, options);
|
|
430
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
610
431
|
});
|
|
611
432
|
},
|
|
612
433
|
/**
|
|
@@ -617,17 +438,10 @@ var PlaystateApiFp = function (configuration) {
|
|
|
617
438
|
* @param {*} [options] Override http request option.
|
|
618
439
|
* @throws {RequiredError}
|
|
619
440
|
*/
|
|
620
|
-
markUnplayedItem
|
|
621
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
622
|
-
|
|
623
|
-
return
|
|
624
|
-
switch (_a.label) {
|
|
625
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.markUnplayedItem(userId, itemId, options)];
|
|
626
|
-
case 1:
|
|
627
|
-
localVarAxiosArgs = _a.sent();
|
|
628
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
629
|
-
}
|
|
630
|
-
});
|
|
441
|
+
markUnplayedItem(userId, itemId, options) {
|
|
442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
443
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markUnplayedItem(userId, itemId, options);
|
|
444
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
631
445
|
});
|
|
632
446
|
},
|
|
633
447
|
/**
|
|
@@ -649,17 +463,10 @@ var PlaystateApiFp = function (configuration) {
|
|
|
649
463
|
* @param {*} [options] Override http request option.
|
|
650
464
|
* @throws {RequiredError}
|
|
651
465
|
*/
|
|
652
|
-
onPlaybackProgress
|
|
653
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
654
|
-
|
|
655
|
-
return
|
|
656
|
-
switch (_a.label) {
|
|
657
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.onPlaybackProgress(userId, itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options)];
|
|
658
|
-
case 1:
|
|
659
|
-
localVarAxiosArgs = _a.sent();
|
|
660
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
661
|
-
}
|
|
662
|
-
});
|
|
466
|
+
onPlaybackProgress(userId, itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options) {
|
|
467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
468
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.onPlaybackProgress(userId, itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options);
|
|
469
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
663
470
|
});
|
|
664
471
|
},
|
|
665
472
|
/**
|
|
@@ -677,17 +484,10 @@ var PlaystateApiFp = function (configuration) {
|
|
|
677
484
|
* @param {*} [options] Override http request option.
|
|
678
485
|
* @throws {RequiredError}
|
|
679
486
|
*/
|
|
680
|
-
onPlaybackStart
|
|
681
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
682
|
-
|
|
683
|
-
return
|
|
684
|
-
switch (_a.label) {
|
|
685
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.onPlaybackStart(userId, itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options)];
|
|
686
|
-
case 1:
|
|
687
|
-
localVarAxiosArgs = _a.sent();
|
|
688
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
689
|
-
}
|
|
690
|
-
});
|
|
487
|
+
onPlaybackStart(userId, itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options) {
|
|
488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
489
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.onPlaybackStart(userId, itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options);
|
|
490
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
691
491
|
});
|
|
692
492
|
},
|
|
693
493
|
/**
|
|
@@ -703,17 +503,10 @@ var PlaystateApiFp = function (configuration) {
|
|
|
703
503
|
* @param {*} [options] Override http request option.
|
|
704
504
|
* @throws {RequiredError}
|
|
705
505
|
*/
|
|
706
|
-
onPlaybackStopped
|
|
707
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
708
|
-
|
|
709
|
-
return
|
|
710
|
-
switch (_a.label) {
|
|
711
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.onPlaybackStopped(userId, itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options)];
|
|
712
|
-
case 1:
|
|
713
|
-
localVarAxiosArgs = _a.sent();
|
|
714
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
715
|
-
}
|
|
716
|
-
});
|
|
506
|
+
onPlaybackStopped(userId, itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options) {
|
|
507
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
508
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.onPlaybackStopped(userId, itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options);
|
|
509
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
717
510
|
});
|
|
718
511
|
},
|
|
719
512
|
/**
|
|
@@ -723,17 +516,10 @@ var PlaystateApiFp = function (configuration) {
|
|
|
723
516
|
* @param {*} [options] Override http request option.
|
|
724
517
|
* @throws {RequiredError}
|
|
725
518
|
*/
|
|
726
|
-
pingPlaybackSession
|
|
727
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
728
|
-
|
|
729
|
-
return
|
|
730
|
-
switch (_a.label) {
|
|
731
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.pingPlaybackSession(playSessionId, options)];
|
|
732
|
-
case 1:
|
|
733
|
-
localVarAxiosArgs = _a.sent();
|
|
734
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
735
|
-
}
|
|
736
|
-
});
|
|
519
|
+
pingPlaybackSession(playSessionId, options) {
|
|
520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
521
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.pingPlaybackSession(playSessionId, options);
|
|
522
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
737
523
|
});
|
|
738
524
|
},
|
|
739
525
|
/**
|
|
@@ -743,17 +529,10 @@ var PlaystateApiFp = function (configuration) {
|
|
|
743
529
|
* @param {*} [options] Override http request option.
|
|
744
530
|
* @throws {RequiredError}
|
|
745
531
|
*/
|
|
746
|
-
reportPlaybackProgress
|
|
747
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
748
|
-
|
|
749
|
-
return
|
|
750
|
-
switch (_a.label) {
|
|
751
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportPlaybackProgress(playbackProgressInfo, options)];
|
|
752
|
-
case 1:
|
|
753
|
-
localVarAxiosArgs = _a.sent();
|
|
754
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
755
|
-
}
|
|
756
|
-
});
|
|
532
|
+
reportPlaybackProgress(playbackProgressInfo, options) {
|
|
533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
534
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportPlaybackProgress(playbackProgressInfo, options);
|
|
535
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
757
536
|
});
|
|
758
537
|
},
|
|
759
538
|
/**
|
|
@@ -763,17 +542,10 @@ var PlaystateApiFp = function (configuration) {
|
|
|
763
542
|
* @param {*} [options] Override http request option.
|
|
764
543
|
* @throws {RequiredError}
|
|
765
544
|
*/
|
|
766
|
-
reportPlaybackStart
|
|
767
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
768
|
-
|
|
769
|
-
return
|
|
770
|
-
switch (_a.label) {
|
|
771
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportPlaybackStart(playbackStartInfo, options)];
|
|
772
|
-
case 1:
|
|
773
|
-
localVarAxiosArgs = _a.sent();
|
|
774
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
775
|
-
}
|
|
776
|
-
});
|
|
545
|
+
reportPlaybackStart(playbackStartInfo, options) {
|
|
546
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
547
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportPlaybackStart(playbackStartInfo, options);
|
|
548
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
777
549
|
});
|
|
778
550
|
},
|
|
779
551
|
/**
|
|
@@ -783,28 +555,20 @@ var PlaystateApiFp = function (configuration) {
|
|
|
783
555
|
* @param {*} [options] Override http request option.
|
|
784
556
|
* @throws {RequiredError}
|
|
785
557
|
*/
|
|
786
|
-
reportPlaybackStopped
|
|
787
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
788
|
-
|
|
789
|
-
return
|
|
790
|
-
switch (_a.label) {
|
|
791
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.reportPlaybackStopped(playbackStopInfo, options)];
|
|
792
|
-
case 1:
|
|
793
|
-
localVarAxiosArgs = _a.sent();
|
|
794
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
795
|
-
}
|
|
796
|
-
});
|
|
558
|
+
reportPlaybackStopped(playbackStopInfo, options) {
|
|
559
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
560
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportPlaybackStopped(playbackStopInfo, options);
|
|
561
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
797
562
|
});
|
|
798
563
|
},
|
|
799
564
|
};
|
|
800
565
|
};
|
|
801
|
-
exports.PlaystateApiFp = PlaystateApiFp;
|
|
802
566
|
/**
|
|
803
567
|
* PlaystateApi - factory interface
|
|
804
568
|
* @export
|
|
805
569
|
*/
|
|
806
|
-
|
|
807
|
-
|
|
570
|
+
const PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
571
|
+
const localVarFp = PlaystateApiFp(configuration);
|
|
808
572
|
return {
|
|
809
573
|
/**
|
|
810
574
|
*
|
|
@@ -815,8 +579,8 @@ var PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
815
579
|
* @param {*} [options] Override http request option.
|
|
816
580
|
* @throws {RequiredError}
|
|
817
581
|
*/
|
|
818
|
-
markPlayedItem
|
|
819
|
-
return localVarFp.markPlayedItem(userId, itemId, datePlayed, options).then(
|
|
582
|
+
markPlayedItem(userId, itemId, datePlayed, options) {
|
|
583
|
+
return localVarFp.markPlayedItem(userId, itemId, datePlayed, options).then((request) => request(axios, basePath));
|
|
820
584
|
},
|
|
821
585
|
/**
|
|
822
586
|
*
|
|
@@ -826,8 +590,8 @@ var PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
826
590
|
* @param {*} [options] Override http request option.
|
|
827
591
|
* @throws {RequiredError}
|
|
828
592
|
*/
|
|
829
|
-
markUnplayedItem
|
|
830
|
-
return localVarFp.markUnplayedItem(userId, itemId, options).then(
|
|
593
|
+
markUnplayedItem(userId, itemId, options) {
|
|
594
|
+
return localVarFp.markUnplayedItem(userId, itemId, options).then((request) => request(axios, basePath));
|
|
831
595
|
},
|
|
832
596
|
/**
|
|
833
597
|
*
|
|
@@ -848,8 +612,8 @@ var PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
848
612
|
* @param {*} [options] Override http request option.
|
|
849
613
|
* @throws {RequiredError}
|
|
850
614
|
*/
|
|
851
|
-
onPlaybackProgress
|
|
852
|
-
return localVarFp.onPlaybackProgress(userId, itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options).then(
|
|
615
|
+
onPlaybackProgress(userId, itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options) {
|
|
616
|
+
return localVarFp.onPlaybackProgress(userId, itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options).then((request) => request(axios, basePath));
|
|
853
617
|
},
|
|
854
618
|
/**
|
|
855
619
|
*
|
|
@@ -866,8 +630,8 @@ var PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
866
630
|
* @param {*} [options] Override http request option.
|
|
867
631
|
* @throws {RequiredError}
|
|
868
632
|
*/
|
|
869
|
-
onPlaybackStart
|
|
870
|
-
return localVarFp.onPlaybackStart(userId, itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options).then(
|
|
633
|
+
onPlaybackStart(userId, itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options) {
|
|
634
|
+
return localVarFp.onPlaybackStart(userId, itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options).then((request) => request(axios, basePath));
|
|
871
635
|
},
|
|
872
636
|
/**
|
|
873
637
|
*
|
|
@@ -882,8 +646,8 @@ var PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
882
646
|
* @param {*} [options] Override http request option.
|
|
883
647
|
* @throws {RequiredError}
|
|
884
648
|
*/
|
|
885
|
-
onPlaybackStopped
|
|
886
|
-
return localVarFp.onPlaybackStopped(userId, itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options).then(
|
|
649
|
+
onPlaybackStopped(userId, itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options) {
|
|
650
|
+
return localVarFp.onPlaybackStopped(userId, itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options).then((request) => request(axios, basePath));
|
|
887
651
|
},
|
|
888
652
|
/**
|
|
889
653
|
*
|
|
@@ -892,8 +656,8 @@ var PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
892
656
|
* @param {*} [options] Override http request option.
|
|
893
657
|
* @throws {RequiredError}
|
|
894
658
|
*/
|
|
895
|
-
pingPlaybackSession
|
|
896
|
-
return localVarFp.pingPlaybackSession(playSessionId, options).then(
|
|
659
|
+
pingPlaybackSession(playSessionId, options) {
|
|
660
|
+
return localVarFp.pingPlaybackSession(playSessionId, options).then((request) => request(axios, basePath));
|
|
897
661
|
},
|
|
898
662
|
/**
|
|
899
663
|
*
|
|
@@ -902,8 +666,8 @@ var PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
902
666
|
* @param {*} [options] Override http request option.
|
|
903
667
|
* @throws {RequiredError}
|
|
904
668
|
*/
|
|
905
|
-
reportPlaybackProgress
|
|
906
|
-
return localVarFp.reportPlaybackProgress(playbackProgressInfo, options).then(
|
|
669
|
+
reportPlaybackProgress(playbackProgressInfo, options) {
|
|
670
|
+
return localVarFp.reportPlaybackProgress(playbackProgressInfo, options).then((request) => request(axios, basePath));
|
|
907
671
|
},
|
|
908
672
|
/**
|
|
909
673
|
*
|
|
@@ -912,8 +676,8 @@ var PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
912
676
|
* @param {*} [options] Override http request option.
|
|
913
677
|
* @throws {RequiredError}
|
|
914
678
|
*/
|
|
915
|
-
reportPlaybackStart
|
|
916
|
-
return localVarFp.reportPlaybackStart(playbackStartInfo, options).then(
|
|
679
|
+
reportPlaybackStart(playbackStartInfo, options) {
|
|
680
|
+
return localVarFp.reportPlaybackStart(playbackStartInfo, options).then((request) => request(axios, basePath));
|
|
917
681
|
},
|
|
918
682
|
/**
|
|
919
683
|
*
|
|
@@ -922,23 +686,18 @@ var PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
922
686
|
* @param {*} [options] Override http request option.
|
|
923
687
|
* @throws {RequiredError}
|
|
924
688
|
*/
|
|
925
|
-
reportPlaybackStopped
|
|
926
|
-
return localVarFp.reportPlaybackStopped(playbackStopInfo, options).then(
|
|
689
|
+
reportPlaybackStopped(playbackStopInfo, options) {
|
|
690
|
+
return localVarFp.reportPlaybackStopped(playbackStopInfo, options).then((request) => request(axios, basePath));
|
|
927
691
|
},
|
|
928
692
|
};
|
|
929
693
|
};
|
|
930
|
-
exports.PlaystateApiFactory = PlaystateApiFactory;
|
|
931
694
|
/**
|
|
932
695
|
* PlaystateApi - object-oriented interface
|
|
933
696
|
* @export
|
|
934
697
|
* @class PlaystateApi
|
|
935
698
|
* @extends {BaseAPI}
|
|
936
699
|
*/
|
|
937
|
-
|
|
938
|
-
__extends(PlaystateApi, _super);
|
|
939
|
-
function PlaystateApi() {
|
|
940
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
941
|
-
}
|
|
700
|
+
class PlaystateApi extends BaseAPI {
|
|
942
701
|
/**
|
|
943
702
|
*
|
|
944
703
|
* @summary Marks an item as played for user.
|
|
@@ -947,10 +706,9 @@ var PlaystateApi = /** @class */ (function (_super) {
|
|
|
947
706
|
* @throws {RequiredError}
|
|
948
707
|
* @memberof PlaystateApi
|
|
949
708
|
*/
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
};
|
|
709
|
+
markPlayedItem(requestParameters, options) {
|
|
710
|
+
return PlaystateApiFp(this.configuration).markPlayedItem(requestParameters.userId, requestParameters.itemId, requestParameters.datePlayed, options).then((request) => request(this.axios, this.basePath));
|
|
711
|
+
}
|
|
954
712
|
/**
|
|
955
713
|
*
|
|
956
714
|
* @summary Marks an item as unplayed for user.
|
|
@@ -959,10 +717,9 @@ var PlaystateApi = /** @class */ (function (_super) {
|
|
|
959
717
|
* @throws {RequiredError}
|
|
960
718
|
* @memberof PlaystateApi
|
|
961
719
|
*/
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
};
|
|
720
|
+
markUnplayedItem(requestParameters, options) {
|
|
721
|
+
return PlaystateApiFp(this.configuration).markUnplayedItem(requestParameters.userId, requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
722
|
+
}
|
|
966
723
|
/**
|
|
967
724
|
*
|
|
968
725
|
* @summary Reports a user\'s playback progress.
|
|
@@ -971,10 +728,9 @@ var PlaystateApi = /** @class */ (function (_super) {
|
|
|
971
728
|
* @throws {RequiredError}
|
|
972
729
|
* @memberof PlaystateApi
|
|
973
730
|
*/
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
};
|
|
731
|
+
onPlaybackProgress(requestParameters, options) {
|
|
732
|
+
return PlaystateApiFp(this.configuration).onPlaybackProgress(requestParameters.userId, requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.positionTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.volumeLevel, requestParameters.playMethod, requestParameters.liveStreamId, requestParameters.playSessionId, requestParameters.repeatMode, requestParameters.isPaused, requestParameters.isMuted, options).then((request) => request(this.axios, this.basePath));
|
|
733
|
+
}
|
|
978
734
|
/**
|
|
979
735
|
*
|
|
980
736
|
* @summary Reports that a user has begun playing an item.
|
|
@@ -983,10 +739,9 @@ var PlaystateApi = /** @class */ (function (_super) {
|
|
|
983
739
|
* @throws {RequiredError}
|
|
984
740
|
* @memberof PlaystateApi
|
|
985
741
|
*/
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
};
|
|
742
|
+
onPlaybackStart(requestParameters, options) {
|
|
743
|
+
return PlaystateApiFp(this.configuration).onPlaybackStart(requestParameters.userId, requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.playMethod, requestParameters.liveStreamId, requestParameters.playSessionId, requestParameters.canSeek, options).then((request) => request(this.axios, this.basePath));
|
|
744
|
+
}
|
|
990
745
|
/**
|
|
991
746
|
*
|
|
992
747
|
* @summary Reports that a user has stopped playing an item.
|
|
@@ -995,10 +750,9 @@ var PlaystateApi = /** @class */ (function (_super) {
|
|
|
995
750
|
* @throws {RequiredError}
|
|
996
751
|
* @memberof PlaystateApi
|
|
997
752
|
*/
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
};
|
|
753
|
+
onPlaybackStopped(requestParameters, options) {
|
|
754
|
+
return PlaystateApiFp(this.configuration).onPlaybackStopped(requestParameters.userId, requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.nextMediaType, requestParameters.positionTicks, requestParameters.liveStreamId, requestParameters.playSessionId, options).then((request) => request(this.axios, this.basePath));
|
|
755
|
+
}
|
|
1002
756
|
/**
|
|
1003
757
|
*
|
|
1004
758
|
* @summary Pings a playback session.
|
|
@@ -1007,10 +761,9 @@ var PlaystateApi = /** @class */ (function (_super) {
|
|
|
1007
761
|
* @throws {RequiredError}
|
|
1008
762
|
* @memberof PlaystateApi
|
|
1009
763
|
*/
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
};
|
|
764
|
+
pingPlaybackSession(requestParameters, options) {
|
|
765
|
+
return PlaystateApiFp(this.configuration).pingPlaybackSession(requestParameters.playSessionId, options).then((request) => request(this.axios, this.basePath));
|
|
766
|
+
}
|
|
1014
767
|
/**
|
|
1015
768
|
*
|
|
1016
769
|
* @summary Reports playback progress within a session.
|
|
@@ -1019,11 +772,9 @@ var PlaystateApi = /** @class */ (function (_super) {
|
|
|
1019
772
|
* @throws {RequiredError}
|
|
1020
773
|
* @memberof PlaystateApi
|
|
1021
774
|
*/
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
return (0, exports.PlaystateApiFp)(this.configuration).reportPlaybackProgress(requestParameters.playbackProgressInfo, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1026
|
-
};
|
|
775
|
+
reportPlaybackProgress(requestParameters = {}, options) {
|
|
776
|
+
return PlaystateApiFp(this.configuration).reportPlaybackProgress(requestParameters.playbackProgressInfo, options).then((request) => request(this.axios, this.basePath));
|
|
777
|
+
}
|
|
1027
778
|
/**
|
|
1028
779
|
*
|
|
1029
780
|
* @summary Reports playback has started within a session.
|
|
@@ -1032,11 +783,9 @@ var PlaystateApi = /** @class */ (function (_super) {
|
|
|
1032
783
|
* @throws {RequiredError}
|
|
1033
784
|
* @memberof PlaystateApi
|
|
1034
785
|
*/
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
return (0, exports.PlaystateApiFp)(this.configuration).reportPlaybackStart(requestParameters.playbackStartInfo, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1039
|
-
};
|
|
786
|
+
reportPlaybackStart(requestParameters = {}, options) {
|
|
787
|
+
return PlaystateApiFp(this.configuration).reportPlaybackStart(requestParameters.playbackStartInfo, options).then((request) => request(this.axios, this.basePath));
|
|
788
|
+
}
|
|
1040
789
|
/**
|
|
1041
790
|
*
|
|
1042
791
|
* @summary Reports playback has stopped within a session.
|
|
@@ -1045,11 +794,9 @@ var PlaystateApi = /** @class */ (function (_super) {
|
|
|
1045
794
|
* @throws {RequiredError}
|
|
1046
795
|
* @memberof PlaystateApi
|
|
1047
796
|
*/
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
}(base_1.BaseAPI));
|
|
1055
|
-
exports.PlaystateApi = PlaystateApi;
|
|
797
|
+
reportPlaybackStopped(requestParameters = {}, options) {
|
|
798
|
+
return PlaystateApiFp(this.configuration).reportPlaybackStopped(requestParameters.playbackStopInfo, options).then((request) => request(this.axios, this.basePath));
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export { PlaystateApi, PlaystateApiAxiosParamCreator, PlaystateApiFactory, PlaystateApiFp };
|