plex-api-client 0.18.1__tar.gz → 0.19.1__tar.gz
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.
- plex_api_client-0.18.1/README-PYPI.md → plex_api_client-0.19.1/PKG-INFO +35 -42
- plex_api_client-0.18.1/PKG-INFO → plex_api_client-0.19.1/README-PYPI.md +11 -65
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/pyproject.toml +2 -2
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/__init__.py +4 -0
- plex_api_client-0.19.1/src/plex_api_client/_version.py +12 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/activities.py +16 -8
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/authentication.py +32 -16
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/butler.py +40 -20
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/hubs.py +24 -12
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/library.py +104 -52
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/log.py +24 -12
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/media.py +56 -28
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_library_items.py +1 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_recently_added.py +1 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_recently_added_library.py +1 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_search_library.py +1 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getbandwidthstatistics.py +0 -1
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getplaylistcontents.py +1 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getresourcesstatistics.py +0 -1
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getstatistics.py +0 -1
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettopwatchedcontent.py +1 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/playlists.py +72 -36
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/plex.py +56 -28
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/sdkconfiguration.py +3 -3
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/search.py +24 -12
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/server.py +72 -36
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/sessions.py +32 -16
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/statistics.py +24 -12
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/updater.py +24 -12
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/__init__.py +6 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/annotations.py +13 -2
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/serializers.py +12 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/video.py +16 -8
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/watchlist.py +8 -4
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/LICENSE.md +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/py.typed +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/_hooks/__init__.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/_hooks/registration.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/_hooks/sdkhooks.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/_hooks/types.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/basesdk.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/httpclient.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/components/__init__.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/components/security.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/__init__.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/addplaylistcontents.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/applyupdates.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/cancelserveractivities.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/checkforupdates.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/clearplaylistcontents.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/createplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/deletelibrary.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/deleteplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/enablepapertrail.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_all_libraries.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_banner_image.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_library_details.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_library_items.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_media_providers.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_meta_data_by_rating_key.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_recently_added_library.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_search_all_libraries.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_search_library.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_server_identity.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_server_resources.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_thumb_image.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_watch_list.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getavailableclients.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getbandwidthstatistics.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getbutlertasks.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getcompanionsdata.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getdevices.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getfilehash.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getgeodata.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getglobalhubs.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gethomedata.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getlibraryhubs.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getmetadatachildren.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getmyplexaccount.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getondeck.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getpin.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getplaylistcontents.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getplaylists.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getresizedphoto.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getresourcesstatistics.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getsearchresults.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getserveractivities.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getservercapabilities.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getserverlist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getserverpreferences.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getsessionhistory.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getsessions.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getstatistics.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettimeline.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettokenbypinid.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettokendetails.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettopwatchedcontent.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettranscodesessions.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettransienttoken.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getupdatestatus.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getuserfriends.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/logline.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/logmultiline.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/markplayed.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/markunplayed.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/performsearch.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/performvoicesearch.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/post_users_sign_in_data.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/sdkerror.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/startalltasks.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/starttask.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/startuniversaltranscode.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/stopalltasks.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/stoptask.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/stoptranscodesession.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/updateplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/updateplayprogress.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/uploadplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/internal/__init__.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/internal/globals.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/__init__.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/addplaylistcontents.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/applyupdates.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/cancelserveractivities.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/checkforupdates.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/clearplaylistcontents.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/createplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/deletelibrary.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/deleteplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/enablepapertrail.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_all_libraries.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_banner_image.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_library_details.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_media_providers.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_meta_data_by_rating_key.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_search_all_libraries.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_server_identity.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_server_resources.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_thumb_image.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_watch_list.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getavailableclients.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getbutlertasks.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getcompanionsdata.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getdevices.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getfilehash.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getgeodata.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getglobalhubs.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gethomedata.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getlibraryhubs.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getmetadatachildren.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getmyplexaccount.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getondeck.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getpin.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getplaylists.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getresizedphoto.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getsearchresults.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getserveractivities.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getservercapabilities.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getserverlist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getserverpreferences.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getsessionhistory.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getsessions.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettimeline.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettokenbypinid.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettokendetails.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettranscodesessions.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettransienttoken.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getupdatestatus.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getuserfriends.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/logline.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/logmultiline.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/markplayed.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/markunplayed.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/performsearch.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/performvoicesearch.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/post_users_sign_in_data.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/startalltasks.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/starttask.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/startuniversaltranscode.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/stopalltasks.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/stoptask.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/stoptranscodesession.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/updateplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/updateplayprogress.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/uploadplaylist.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/py.typed +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/sdk.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/types/__init__.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/types/basemodel.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/enums.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/eventstreaming.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/forms.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/headers.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/logger.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/metadata.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/queryparams.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/requestbodies.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/retries.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/security.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/url.py +0 -0
- {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/values.py +0 -0
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: plex-api-client
|
|
3
|
+
Version: 0.19.1
|
|
4
|
+
Summary: Python Client SDK Generated by Speakeasy
|
|
5
|
+
Home-page: https://github.com/LukeHagar/plexpy.git
|
|
6
|
+
Author: Speakeasy
|
|
7
|
+
Requires-Python: >=3.8,<4.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Requires-Dist: eval-type-backport (>=0.2.0,<0.3.0)
|
|
16
|
+
Requires-Dist: httpx (>=0.27.0,<0.28.0)
|
|
17
|
+
Requires-Dist: jsonpath-python (>=1.0.6,<2.0.0)
|
|
18
|
+
Requires-Dist: pydantic (>=2.9.2,<2.10.0)
|
|
19
|
+
Requires-Dist: python-dateutil (==2.8.2)
|
|
20
|
+
Requires-Dist: typing-inspect (>=0.9.0,<0.10.0)
|
|
21
|
+
Project-URL: Repository, https://github.com/LukeHagar/plexpy.git
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
1
24
|
# plexpy
|
|
2
25
|
|
|
3
26
|
<div align="left">
|
|
@@ -338,11 +361,11 @@ By default, an API error will raise a errors.SDKError exception, which has the f
|
|
|
338
361
|
|
|
339
362
|
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `get_server_capabilities_async` method may raise the following exceptions:
|
|
340
363
|
|
|
341
|
-
| Error Type | Status Code
|
|
342
|
-
| ---------------------------------------- |
|
|
343
|
-
| errors.GetServerCapabilitiesBadRequest | 400
|
|
344
|
-
| errors.GetServerCapabilitiesUnauthorized | 401
|
|
345
|
-
| errors.SDKError | 4XX, 5XX
|
|
364
|
+
| Error Type | Status Code | Content Type |
|
|
365
|
+
| ---------------------------------------- | ----------- | ---------------- |
|
|
366
|
+
| errors.GetServerCapabilitiesBadRequest | 400 | application/json |
|
|
367
|
+
| errors.GetServerCapabilitiesUnauthorized | 401 | application/json |
|
|
368
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
346
369
|
|
|
347
370
|
### Example
|
|
348
371
|
|
|
@@ -382,40 +405,9 @@ except errors.SDKError as e:
|
|
|
382
405
|
<!-- Start Server Selection [server] -->
|
|
383
406
|
## Server Selection
|
|
384
407
|
|
|
385
|
-
###
|
|
386
|
-
|
|
387
|
-
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
|
|
388
|
-
|
|
389
|
-
| # | Server | Variables |
|
|
390
|
-
| - | ------ | --------- |
|
|
391
|
-
| 0 | `{protocol}://{ip}:{port}` | `protocol` (default is `https`), `ip` (default is `10.10.10.47`), `port` (default is `32400`) |
|
|
392
|
-
|
|
393
|
-
#### Example
|
|
394
|
-
|
|
395
|
-
```python
|
|
396
|
-
from plex_api_client import PlexAPI
|
|
397
|
-
|
|
398
|
-
s = PlexAPI(
|
|
399
|
-
server_idx=0,
|
|
400
|
-
access_token="<YOUR_API_KEY_HERE>",
|
|
401
|
-
client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
|
|
402
|
-
client_name="Plex for Roku",
|
|
403
|
-
client_version="2.4.1",
|
|
404
|
-
platform="Roku",
|
|
405
|
-
device_nickname="Roku 3",
|
|
406
|
-
)
|
|
407
|
-
|
|
408
|
-
res = s.server.get_server_capabilities()
|
|
408
|
+
### Server Variables
|
|
409
409
|
|
|
410
|
-
|
|
411
|
-
# handle response
|
|
412
|
-
pass
|
|
413
|
-
|
|
414
|
-
```
|
|
415
|
-
|
|
416
|
-
#### Variables
|
|
417
|
-
|
|
418
|
-
Some of the server options above contain variables. If you want to set the values of those variables, the following optional parameters are available when initializing the SDK client instance:
|
|
410
|
+
The default server `{protocol}://{ip}:{port}` contains variables and is set to `https://10.10.10.47:32400` by default. To override default values, the following parameters are available when initializing the SDK client instance:
|
|
419
411
|
* `protocol: models.ServerProtocol`
|
|
420
412
|
* `ip: str`
|
|
421
413
|
* `port: str`
|
|
@@ -427,7 +419,7 @@ The default server can also be overridden globally by passing a URL to the `serv
|
|
|
427
419
|
from plex_api_client import PlexAPI
|
|
428
420
|
|
|
429
421
|
s = PlexAPI(
|
|
430
|
-
server_url="
|
|
422
|
+
server_url="https://10.10.10.47:32400",
|
|
431
423
|
access_token="<YOUR_API_KEY_HERE>",
|
|
432
424
|
client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
|
|
433
425
|
client_name="Plex for Roku",
|
|
@@ -556,9 +548,9 @@ s = PlexAPI(async_client=CustomClient(httpx.AsyncClient()))
|
|
|
556
548
|
|
|
557
549
|
This SDK supports the following security scheme globally:
|
|
558
550
|
|
|
559
|
-
| Name | Type
|
|
560
|
-
| -------------- |
|
|
561
|
-
| `access_token` | apiKey
|
|
551
|
+
| Name | Type | Scheme |
|
|
552
|
+
| -------------- | ------ | ------- |
|
|
553
|
+
| `access_token` | apiKey | API key |
|
|
562
554
|
|
|
563
555
|
To authenticate with the API the `access_token` parameter must be set when initializing the SDK client instance. For example:
|
|
564
556
|
```python
|
|
@@ -613,3 +605,4 @@ While we value open-source contributions to this SDK, this library is generated
|
|
|
613
605
|
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!
|
|
614
606
|
|
|
615
607
|
### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
|
|
608
|
+
|
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: plex-api-client
|
|
3
|
-
Version: 0.18.1
|
|
4
|
-
Summary: Python Client SDK Generated by Speakeasy
|
|
5
|
-
Home-page: https://github.com/LukeHagar/plexpy.git
|
|
6
|
-
Author: Speakeasy
|
|
7
|
-
Requires-Python: >=3.8,<4.0
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
-
Requires-Dist: eval-type-backport (>=0.2.0,<0.3.0)
|
|
15
|
-
Requires-Dist: httpx (>=0.27.0,<0.28.0)
|
|
16
|
-
Requires-Dist: jsonpath-python (>=1.0.6,<2.0.0)
|
|
17
|
-
Requires-Dist: pydantic (>=2.9.0,<2.10.0)
|
|
18
|
-
Requires-Dist: python-dateutil (==2.8.2)
|
|
19
|
-
Requires-Dist: typing-inspect (>=0.9.0,<0.10.0)
|
|
20
|
-
Project-URL: Repository, https://github.com/LukeHagar/plexpy.git
|
|
21
|
-
Description-Content-Type: text/markdown
|
|
22
|
-
|
|
23
1
|
# plexpy
|
|
24
2
|
|
|
25
3
|
<div align="left">
|
|
@@ -360,11 +338,11 @@ By default, an API error will raise a errors.SDKError exception, which has the f
|
|
|
360
338
|
|
|
361
339
|
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `get_server_capabilities_async` method may raise the following exceptions:
|
|
362
340
|
|
|
363
|
-
| Error Type | Status Code
|
|
364
|
-
| ---------------------------------------- |
|
|
365
|
-
| errors.GetServerCapabilitiesBadRequest | 400
|
|
366
|
-
| errors.GetServerCapabilitiesUnauthorized | 401
|
|
367
|
-
| errors.SDKError | 4XX, 5XX
|
|
341
|
+
| Error Type | Status Code | Content Type |
|
|
342
|
+
| ---------------------------------------- | ----------- | ---------------- |
|
|
343
|
+
| errors.GetServerCapabilitiesBadRequest | 400 | application/json |
|
|
344
|
+
| errors.GetServerCapabilitiesUnauthorized | 401 | application/json |
|
|
345
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
368
346
|
|
|
369
347
|
### Example
|
|
370
348
|
|
|
@@ -404,40 +382,9 @@ except errors.SDKError as e:
|
|
|
404
382
|
<!-- Start Server Selection [server] -->
|
|
405
383
|
## Server Selection
|
|
406
384
|
|
|
407
|
-
###
|
|
408
|
-
|
|
409
|
-
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
|
|
410
|
-
|
|
411
|
-
| # | Server | Variables |
|
|
412
|
-
| - | ------ | --------- |
|
|
413
|
-
| 0 | `{protocol}://{ip}:{port}` | `protocol` (default is `https`), `ip` (default is `10.10.10.47`), `port` (default is `32400`) |
|
|
414
|
-
|
|
415
|
-
#### Example
|
|
416
|
-
|
|
417
|
-
```python
|
|
418
|
-
from plex_api_client import PlexAPI
|
|
419
|
-
|
|
420
|
-
s = PlexAPI(
|
|
421
|
-
server_idx=0,
|
|
422
|
-
access_token="<YOUR_API_KEY_HERE>",
|
|
423
|
-
client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
|
|
424
|
-
client_name="Plex for Roku",
|
|
425
|
-
client_version="2.4.1",
|
|
426
|
-
platform="Roku",
|
|
427
|
-
device_nickname="Roku 3",
|
|
428
|
-
)
|
|
429
|
-
|
|
430
|
-
res = s.server.get_server_capabilities()
|
|
385
|
+
### Server Variables
|
|
431
386
|
|
|
432
|
-
|
|
433
|
-
# handle response
|
|
434
|
-
pass
|
|
435
|
-
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
#### Variables
|
|
439
|
-
|
|
440
|
-
Some of the server options above contain variables. If you want to set the values of those variables, the following optional parameters are available when initializing the SDK client instance:
|
|
387
|
+
The default server `{protocol}://{ip}:{port}` contains variables and is set to `https://10.10.10.47:32400` by default. To override default values, the following parameters are available when initializing the SDK client instance:
|
|
441
388
|
* `protocol: models.ServerProtocol`
|
|
442
389
|
* `ip: str`
|
|
443
390
|
* `port: str`
|
|
@@ -449,7 +396,7 @@ The default server can also be overridden globally by passing a URL to the `serv
|
|
|
449
396
|
from plex_api_client import PlexAPI
|
|
450
397
|
|
|
451
398
|
s = PlexAPI(
|
|
452
|
-
server_url="
|
|
399
|
+
server_url="https://10.10.10.47:32400",
|
|
453
400
|
access_token="<YOUR_API_KEY_HERE>",
|
|
454
401
|
client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
|
|
455
402
|
client_name="Plex for Roku",
|
|
@@ -578,9 +525,9 @@ s = PlexAPI(async_client=CustomClient(httpx.AsyncClient()))
|
|
|
578
525
|
|
|
579
526
|
This SDK supports the following security scheme globally:
|
|
580
527
|
|
|
581
|
-
| Name | Type
|
|
582
|
-
| -------------- |
|
|
583
|
-
| `access_token` | apiKey
|
|
528
|
+
| Name | Type | Scheme |
|
|
529
|
+
| -------------- | ------ | ------- |
|
|
530
|
+
| `access_token` | apiKey | API key |
|
|
584
531
|
|
|
585
532
|
To authenticate with the API the `access_token` parameter must be set when initializing the SDK client instance. For example:
|
|
586
533
|
```python
|
|
@@ -635,4 +582,3 @@ While we value open-source contributions to this SDK, this library is generated
|
|
|
635
582
|
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!
|
|
636
583
|
|
|
637
584
|
### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
|
|
638
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "plex-api-client"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.19.1"
|
|
4
4
|
description = "Python Client SDK Generated by Speakeasy"
|
|
5
5
|
authors = ["Speakeasy",]
|
|
6
6
|
readme = "README-PYPI.md"
|
|
@@ -21,7 +21,7 @@ python = "^3.8"
|
|
|
21
21
|
eval-type-backport = "^0.2.0"
|
|
22
22
|
httpx = "^0.27.0"
|
|
23
23
|
jsonpath-python = "^1.0.6"
|
|
24
|
-
pydantic = "~2.9.
|
|
24
|
+
pydantic = "~2.9.2"
|
|
25
25
|
python-dateutil = "2.8.2"
|
|
26
26
|
typing-inspect = "^0.9.0"
|
|
27
27
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
import importlib.metadata
|
|
4
|
+
|
|
5
|
+
__title__: str = "plex-api-client"
|
|
6
|
+
__version__: str = "0.19.1"
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
if __package__ is not None:
|
|
10
|
+
__version__ = importlib.metadata.version(__package__)
|
|
11
|
+
except importlib.metadata.PackageNotFoundError:
|
|
12
|
+
pass
|
|
@@ -98,15 +98,17 @@ class Activities(BaseSDK):
|
|
|
98
98
|
data.raw_response = http_res
|
|
99
99
|
raise errors.GetServerActivitiesUnauthorized(data=data)
|
|
100
100
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
101
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
101
102
|
raise errors.SDKError(
|
|
102
|
-
"API error occurred", http_res.status_code,
|
|
103
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
103
104
|
)
|
|
104
105
|
|
|
105
106
|
content_type = http_res.headers.get("Content-Type")
|
|
107
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
106
108
|
raise errors.SDKError(
|
|
107
109
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
108
110
|
http_res.status_code,
|
|
109
|
-
|
|
111
|
+
http_res_text,
|
|
110
112
|
http_res,
|
|
111
113
|
)
|
|
112
114
|
|
|
@@ -189,15 +191,17 @@ class Activities(BaseSDK):
|
|
|
189
191
|
data.raw_response = http_res
|
|
190
192
|
raise errors.GetServerActivitiesUnauthorized(data=data)
|
|
191
193
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
194
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
192
195
|
raise errors.SDKError(
|
|
193
|
-
"API error occurred", http_res.status_code,
|
|
196
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
194
197
|
)
|
|
195
198
|
|
|
196
199
|
content_type = http_res.headers.get("Content-Type")
|
|
200
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
197
201
|
raise errors.SDKError(
|
|
198
202
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
199
203
|
http_res.status_code,
|
|
200
|
-
|
|
204
|
+
http_res_text,
|
|
201
205
|
http_res,
|
|
202
206
|
)
|
|
203
207
|
|
|
@@ -284,15 +288,17 @@ class Activities(BaseSDK):
|
|
|
284
288
|
data.raw_response = http_res
|
|
285
289
|
raise errors.CancelServerActivitiesUnauthorized(data=data)
|
|
286
290
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
291
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
287
292
|
raise errors.SDKError(
|
|
288
|
-
"API error occurred", http_res.status_code,
|
|
293
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
289
294
|
)
|
|
290
295
|
|
|
291
296
|
content_type = http_res.headers.get("Content-Type")
|
|
297
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
292
298
|
raise errors.SDKError(
|
|
293
299
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
294
300
|
http_res.status_code,
|
|
295
|
-
|
|
301
|
+
http_res_text,
|
|
296
302
|
http_res,
|
|
297
303
|
)
|
|
298
304
|
|
|
@@ -379,14 +385,16 @@ class Activities(BaseSDK):
|
|
|
379
385
|
data.raw_response = http_res
|
|
380
386
|
raise errors.CancelServerActivitiesUnauthorized(data=data)
|
|
381
387
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
388
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
382
389
|
raise errors.SDKError(
|
|
383
|
-
"API error occurred", http_res.status_code,
|
|
390
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
384
391
|
)
|
|
385
392
|
|
|
386
393
|
content_type = http_res.headers.get("Content-Type")
|
|
394
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
387
395
|
raise errors.SDKError(
|
|
388
396
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
389
397
|
http_res.status_code,
|
|
390
|
-
|
|
398
|
+
http_res_text,
|
|
391
399
|
http_res,
|
|
392
400
|
)
|
|
@@ -98,15 +98,17 @@ class Authentication(BaseSDK):
|
|
|
98
98
|
data.raw_response = http_res
|
|
99
99
|
raise errors.GetTransientTokenUnauthorized(data=data)
|
|
100
100
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
101
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
101
102
|
raise errors.SDKError(
|
|
102
|
-
"API error occurred", http_res.status_code,
|
|
103
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
103
104
|
)
|
|
104
105
|
|
|
105
106
|
content_type = http_res.headers.get("Content-Type")
|
|
107
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
106
108
|
raise errors.SDKError(
|
|
107
109
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
108
110
|
http_res.status_code,
|
|
109
|
-
|
|
111
|
+
http_res_text,
|
|
110
112
|
http_res,
|
|
111
113
|
)
|
|
112
114
|
|
|
@@ -197,15 +199,17 @@ class Authentication(BaseSDK):
|
|
|
197
199
|
data.raw_response = http_res
|
|
198
200
|
raise errors.GetTransientTokenUnauthorized(data=data)
|
|
199
201
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
202
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
200
203
|
raise errors.SDKError(
|
|
201
|
-
"API error occurred", http_res.status_code,
|
|
204
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
202
205
|
)
|
|
203
206
|
|
|
204
207
|
content_type = http_res.headers.get("Content-Type")
|
|
208
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
205
209
|
raise errors.SDKError(
|
|
206
210
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
207
211
|
http_res.status_code,
|
|
208
|
-
|
|
212
|
+
http_res_text,
|
|
209
213
|
http_res,
|
|
210
214
|
)
|
|
211
215
|
|
|
@@ -294,15 +298,17 @@ class Authentication(BaseSDK):
|
|
|
294
298
|
data.raw_response = http_res
|
|
295
299
|
raise errors.GetSourceConnectionInformationUnauthorized(data=data)
|
|
296
300
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
301
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
297
302
|
raise errors.SDKError(
|
|
298
|
-
"API error occurred", http_res.status_code,
|
|
303
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
299
304
|
)
|
|
300
305
|
|
|
301
306
|
content_type = http_res.headers.get("Content-Type")
|
|
307
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
302
308
|
raise errors.SDKError(
|
|
303
309
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
304
310
|
http_res.status_code,
|
|
305
|
-
|
|
311
|
+
http_res_text,
|
|
306
312
|
http_res,
|
|
307
313
|
)
|
|
308
314
|
|
|
@@ -391,15 +397,17 @@ class Authentication(BaseSDK):
|
|
|
391
397
|
data.raw_response = http_res
|
|
392
398
|
raise errors.GetSourceConnectionInformationUnauthorized(data=data)
|
|
393
399
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
400
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
394
401
|
raise errors.SDKError(
|
|
395
|
-
"API error occurred", http_res.status_code,
|
|
402
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
396
403
|
)
|
|
397
404
|
|
|
398
405
|
content_type = http_res.headers.get("Content-Type")
|
|
406
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
399
407
|
raise errors.SDKError(
|
|
400
408
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
401
409
|
http_res.status_code,
|
|
402
|
-
|
|
410
|
+
http_res_text,
|
|
403
411
|
http_res,
|
|
404
412
|
)
|
|
405
413
|
|
|
@@ -484,15 +492,17 @@ class Authentication(BaseSDK):
|
|
|
484
492
|
data.raw_response = http_res
|
|
485
493
|
raise errors.GetTokenDetailsUnauthorized(data=data)
|
|
486
494
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
495
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
487
496
|
raise errors.SDKError(
|
|
488
|
-
"API error occurred", http_res.status_code,
|
|
497
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
489
498
|
)
|
|
490
499
|
|
|
491
500
|
content_type = http_res.headers.get("Content-Type")
|
|
501
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
492
502
|
raise errors.SDKError(
|
|
493
503
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
494
504
|
http_res.status_code,
|
|
495
|
-
|
|
505
|
+
http_res_text,
|
|
496
506
|
http_res,
|
|
497
507
|
)
|
|
498
508
|
|
|
@@ -577,15 +587,17 @@ class Authentication(BaseSDK):
|
|
|
577
587
|
data.raw_response = http_res
|
|
578
588
|
raise errors.GetTokenDetailsUnauthorized(data=data)
|
|
579
589
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
590
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
580
591
|
raise errors.SDKError(
|
|
581
|
-
"API error occurred", http_res.status_code,
|
|
592
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
582
593
|
)
|
|
583
594
|
|
|
584
595
|
content_type = http_res.headers.get("Content-Type")
|
|
596
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
585
597
|
raise errors.SDKError(
|
|
586
598
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
587
599
|
http_res.status_code,
|
|
588
|
-
|
|
600
|
+
http_res_text,
|
|
589
601
|
http_res,
|
|
590
602
|
)
|
|
591
603
|
|
|
@@ -694,15 +706,17 @@ class Authentication(BaseSDK):
|
|
|
694
706
|
data.raw_response = http_res
|
|
695
707
|
raise errors.PostUsersSignInDataUnauthorized(data=data)
|
|
696
708
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
709
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
697
710
|
raise errors.SDKError(
|
|
698
|
-
"API error occurred", http_res.status_code,
|
|
711
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
699
712
|
)
|
|
700
713
|
|
|
701
714
|
content_type = http_res.headers.get("Content-Type")
|
|
715
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
702
716
|
raise errors.SDKError(
|
|
703
717
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
704
718
|
http_res.status_code,
|
|
705
|
-
|
|
719
|
+
http_res_text,
|
|
706
720
|
http_res,
|
|
707
721
|
)
|
|
708
722
|
|
|
@@ -811,14 +825,16 @@ class Authentication(BaseSDK):
|
|
|
811
825
|
data.raw_response = http_res
|
|
812
826
|
raise errors.PostUsersSignInDataUnauthorized(data=data)
|
|
813
827
|
if utils.match_response(http_res, ["4XX", "5XX"], "*"):
|
|
828
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
814
829
|
raise errors.SDKError(
|
|
815
|
-
"API error occurred", http_res.status_code,
|
|
830
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
816
831
|
)
|
|
817
832
|
|
|
818
833
|
content_type = http_res.headers.get("Content-Type")
|
|
834
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
819
835
|
raise errors.SDKError(
|
|
820
836
|
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
821
837
|
http_res.status_code,
|
|
822
|
-
|
|
838
|
+
http_res_text,
|
|
823
839
|
http_res,
|
|
824
840
|
)
|