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