plex-api-client 0.23.0__tar.gz → 0.24.0__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.23.0/README-PYPI.md → plex_api_client-0.24.0/PKG-INFO +60 -4
- plex_api_client-0.23.0/PKG-INFO → plex_api_client-0.24.0/README-PYPI.md +39 -25
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/pyproject.toml +2 -2
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/_hooks/types.py +15 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/_version.py +3 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/activities.py +12 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/authentication.py +16 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/basesdk.py +8 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/butler.py +30 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/httpclient.py +4 -2
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/hubs.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/library.py +102 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/log.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/media.py +30 -0
- plex_api_client-0.24.0/src/plex_api_client/models/__init__.py +4 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_server_resources.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_users.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_watch_list.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getcompanionsdata.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getgeodata.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getpin.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/gettokenbypinid.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/gettokendetails.py +5 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getuserfriends.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/post_users_sign_in_data.py +7 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/playlists.py +54 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/plex.py +36 -6
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/sdk.py +19 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/sdkconfiguration.py +4 -2
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/search.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/server.py +54 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/sessions.py +24 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/statistics.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/updater.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/users.py +8 -2
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/__init__.py +2 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/serializers.py +9 -5
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/values.py +4 -1
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/video.py +12 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/watchlist.py +2 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/LICENSE.md +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/py.typed +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/_hooks/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/_hooks/registration.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/_hooks/sdkhooks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/components/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/components/security.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/addplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/applyupdates.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/cancelserveractivities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/checkforupdates.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/clearplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/createplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/deletelibrary.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/deleteplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/enablepapertrail.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_actors_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_all_libraries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_all_media_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_banner_image.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_countries_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_genres_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_library_details.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_library_items.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_media_meta_data.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_media_providers.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_recently_added_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_search_all_libraries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_search_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_server_identity.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_server_resources.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_thumb_image.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_users.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/get_watch_list.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getavailableclients.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getbandwidthstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getbutlertasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getcompanionsdata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getdevices.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getfilehash.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getgeodata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getglobalhubs.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/gethomedata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getlibraryhubs.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getmetadatachildren.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getmyplexaccount.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getondeck.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getpin.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getplaylists.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getresizedphoto.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getresourcesstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getsearchresults.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getserveractivities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getservercapabilities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getserverlist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getserverpreferences.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getsessionhistory.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getsessions.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/gettimeline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/gettokenbypinid.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/gettokendetails.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/gettopwatchedcontent.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/gettranscodesessions.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/gettransienttoken.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getupdatestatus.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/getuserfriends.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/logline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/logmultiline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/markplayed.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/markunplayed.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/performsearch.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/performvoicesearch.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/post_users_sign_in_data.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/sdkerror.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/startalltasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/starttask.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/startuniversaltranscode.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/stopalltasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/stoptask.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/stoptranscodesession.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/updateplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/updateplayprogress.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/errors/uploadplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/addplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/applyupdates.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/cancelserveractivities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/checkforupdates.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/clearplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/createplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/deletelibrary.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/deleteplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/enablepapertrail.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_actors_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_all_libraries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_all_media_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_banner_image.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_countries_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_genres_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_library_details.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_library_items.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_media_meta_data.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_media_providers.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_recently_added.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_recently_added_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_search_all_libraries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_search_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_server_identity.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/get_thumb_image.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getavailableclients.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getbandwidthstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getbutlertasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getdevices.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getfilehash.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getglobalhubs.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/gethomedata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getlibraryhubs.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getmetadatachildren.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getmyplexaccount.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getondeck.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getplaylists.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getresizedphoto.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getresourcesstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getsearchresults.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getserveractivities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getservercapabilities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getserverlist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getserverpreferences.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getsessionhistory.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getsessions.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/gettimeline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/gettopwatchedcontent.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/gettranscodesessions.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/gettransienttoken.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/getupdatestatus.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/logline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/logmultiline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/markplayed.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/markunplayed.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/performsearch.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/performvoicesearch.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/startalltasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/starttask.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/startuniversaltranscode.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/stopalltasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/stoptask.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/stoptranscodesession.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/updateplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/updateplayprogress.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/models/operations/uploadplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/py.typed +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/types/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/types/basemodel.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/annotations.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/enums.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/eventstreaming.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/forms.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/headers.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/logger.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/metadata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/queryparams.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/requestbodies.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/retries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/security.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.0}/src/plex_api_client/utils/url.py +0 -0
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: plex-api-client
|
|
3
|
+
Version: 0.24.0
|
|
4
|
+
Summary: Python Client SDK Generated by Speakeasy
|
|
5
|
+
Author: Speakeasy
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Requires-Dist: eval-type-backport (>=0.2.0)
|
|
14
|
+
Requires-Dist: httpx (>=0.28.1)
|
|
15
|
+
Requires-Dist: pydantic (>=2.10.3)
|
|
16
|
+
Requires-Dist: python-dateutil (>=2.8.2)
|
|
17
|
+
Requires-Dist: typing-inspection (>=0.4.0)
|
|
18
|
+
Project-URL: Repository, https://github.com/LukeHagar/plexpy.git
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
1
21
|
# plexpy
|
|
2
22
|
|
|
3
23
|
<div align="left">
|
|
@@ -139,6 +159,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
|
|
|
139
159
|
# Synchronous Example
|
|
140
160
|
from plex_api_client import PlexAPI
|
|
141
161
|
|
|
162
|
+
|
|
142
163
|
with PlexAPI(
|
|
143
164
|
access_token="<YOUR_API_KEY_HERE>",
|
|
144
165
|
) as plex_api:
|
|
@@ -160,6 +181,7 @@ import asyncio
|
|
|
160
181
|
from plex_api_client import PlexAPI
|
|
161
182
|
|
|
162
183
|
async def main():
|
|
184
|
+
|
|
163
185
|
async with PlexAPI(
|
|
164
186
|
access_token="<YOUR_API_KEY_HERE>",
|
|
165
187
|
) as plex_api:
|
|
@@ -327,6 +349,7 @@ To change the default retry strategy for a single API call, simply provide a `Re
|
|
|
327
349
|
from plex_api_client import PlexAPI
|
|
328
350
|
from plex_api_client.utils import BackoffStrategy, RetryConfig
|
|
329
351
|
|
|
352
|
+
|
|
330
353
|
with PlexAPI(
|
|
331
354
|
access_token="<YOUR_API_KEY_HERE>",
|
|
332
355
|
) as plex_api:
|
|
@@ -346,6 +369,7 @@ If you'd like to override the default retry strategy for all operations that sup
|
|
|
346
369
|
from plex_api_client import PlexAPI
|
|
347
370
|
from plex_api_client.utils import BackoffStrategy, RetryConfig
|
|
348
371
|
|
|
372
|
+
|
|
349
373
|
with PlexAPI(
|
|
350
374
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
|
351
375
|
access_token="<YOUR_API_KEY_HERE>",
|
|
@@ -389,6 +413,7 @@ When custom error responses are specified for an operation, the SDK may also rai
|
|
|
389
413
|
from plex_api_client import PlexAPI
|
|
390
414
|
from plex_api_client.models import errors
|
|
391
415
|
|
|
416
|
+
|
|
392
417
|
with PlexAPI(
|
|
393
418
|
access_token="<YOUR_API_KEY_HERE>",
|
|
394
419
|
) as plex_api:
|
|
@@ -420,16 +445,42 @@ with PlexAPI(
|
|
|
420
445
|
### Server Variables
|
|
421
446
|
|
|
422
447
|
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:
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
448
|
+
|
|
449
|
+
| Variable | Parameter | Supported Values | Default | Description |
|
|
450
|
+
| ---------- | --------------------------------- | -------------------------- | --------------- | ---------------------------------------------- |
|
|
451
|
+
| `protocol` | `protocol: models.ServerProtocol` | - `"http"`<br/>- `"https"` | `"https"` | The protocol to use for the server connection |
|
|
452
|
+
| `ip` | `ip: str` | str | `"10.10.10.47"` | The IP address or hostname of your Plex Server |
|
|
453
|
+
| `port` | `port: str` | str | `"32400"` | The port of your Plex Server |
|
|
454
|
+
|
|
455
|
+
#### Example
|
|
456
|
+
|
|
457
|
+
```python
|
|
458
|
+
from plex_api_client import PlexAPI
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
with PlexAPI(
|
|
462
|
+
protocol="https"
|
|
463
|
+
ip="e0c3:bcc0:6bac:dccc:c4ec:34b1:ca98:4cb9"
|
|
464
|
+
port="40311"
|
|
465
|
+
access_token="<YOUR_API_KEY_HERE>",
|
|
466
|
+
) as plex_api:
|
|
467
|
+
|
|
468
|
+
res = plex_api.server.get_server_capabilities()
|
|
469
|
+
|
|
470
|
+
assert res.object is not None
|
|
471
|
+
|
|
472
|
+
# Handle response
|
|
473
|
+
print(res.object)
|
|
474
|
+
|
|
475
|
+
```
|
|
426
476
|
|
|
427
477
|
### Override Server URL Per-Client
|
|
428
478
|
|
|
429
|
-
The default server can
|
|
479
|
+
The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
|
430
480
|
```python
|
|
431
481
|
from plex_api_client import PlexAPI
|
|
432
482
|
|
|
483
|
+
|
|
433
484
|
with PlexAPI(
|
|
434
485
|
server_url="https://10.10.10.47:32400",
|
|
435
486
|
access_token="<YOUR_API_KEY_HERE>",
|
|
@@ -450,6 +501,7 @@ The server URL can also be overridden on a per-operation basis, provided a serve
|
|
|
450
501
|
```python
|
|
451
502
|
from plex_api_client import PlexAPI
|
|
452
503
|
|
|
504
|
+
|
|
453
505
|
with PlexAPI(
|
|
454
506
|
access_token="<YOUR_API_KEY_HERE>",
|
|
455
507
|
) as plex_api:
|
|
@@ -560,6 +612,7 @@ To authenticate with the API the `access_token` parameter must be set when initi
|
|
|
560
612
|
```python
|
|
561
613
|
from plex_api_client import PlexAPI
|
|
562
614
|
|
|
615
|
+
|
|
563
616
|
with PlexAPI(
|
|
564
617
|
access_token="<YOUR_API_KEY_HERE>",
|
|
565
618
|
) as plex_api:
|
|
@@ -584,6 +637,7 @@ The `PlexAPI` class implements the context manager protocol and registers a fina
|
|
|
584
637
|
```python
|
|
585
638
|
from plex_api_client import PlexAPI
|
|
586
639
|
def main():
|
|
640
|
+
|
|
587
641
|
with PlexAPI(
|
|
588
642
|
access_token="<YOUR_API_KEY_HERE>",
|
|
589
643
|
) as plex_api:
|
|
@@ -592,6 +646,7 @@ def main():
|
|
|
592
646
|
|
|
593
647
|
# Or when using async:
|
|
594
648
|
async def amain():
|
|
649
|
+
|
|
595
650
|
async with PlexAPI(
|
|
596
651
|
access_token="<YOUR_API_KEY_HERE>",
|
|
597
652
|
) as plex_api:
|
|
@@ -630,3 +685,4 @@ While we value open-source contributions to this SDK, this library is generated
|
|
|
630
685
|
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!
|
|
631
686
|
|
|
632
687
|
### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
|
|
688
|
+
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: plex-api-client
|
|
3
|
-
Version: 0.23.0
|
|
4
|
-
Summary: Python Client SDK Generated by Speakeasy
|
|
5
|
-
Author: Speakeasy
|
|
6
|
-
Requires-Python: >=3.9
|
|
7
|
-
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
-
Requires-Dist: eval-type-backport (>=0.2.0)
|
|
14
|
-
Requires-Dist: httpx (>=0.28.1)
|
|
15
|
-
Requires-Dist: pydantic (>=2.10.3)
|
|
16
|
-
Requires-Dist: python-dateutil (>=2.8.2)
|
|
17
|
-
Requires-Dist: typing-inspect (>=0.9.0)
|
|
18
|
-
Project-URL: Repository, https://github.com/LukeHagar/plexpy.git
|
|
19
|
-
Description-Content-Type: text/markdown
|
|
20
|
-
|
|
21
1
|
# plexpy
|
|
22
2
|
|
|
23
3
|
<div align="left">
|
|
@@ -159,6 +139,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
|
|
|
159
139
|
# Synchronous Example
|
|
160
140
|
from plex_api_client import PlexAPI
|
|
161
141
|
|
|
142
|
+
|
|
162
143
|
with PlexAPI(
|
|
163
144
|
access_token="<YOUR_API_KEY_HERE>",
|
|
164
145
|
) as plex_api:
|
|
@@ -180,6 +161,7 @@ import asyncio
|
|
|
180
161
|
from plex_api_client import PlexAPI
|
|
181
162
|
|
|
182
163
|
async def main():
|
|
164
|
+
|
|
183
165
|
async with PlexAPI(
|
|
184
166
|
access_token="<YOUR_API_KEY_HERE>",
|
|
185
167
|
) as plex_api:
|
|
@@ -347,6 +329,7 @@ To change the default retry strategy for a single API call, simply provide a `Re
|
|
|
347
329
|
from plex_api_client import PlexAPI
|
|
348
330
|
from plex_api_client.utils import BackoffStrategy, RetryConfig
|
|
349
331
|
|
|
332
|
+
|
|
350
333
|
with PlexAPI(
|
|
351
334
|
access_token="<YOUR_API_KEY_HERE>",
|
|
352
335
|
) as plex_api:
|
|
@@ -366,6 +349,7 @@ If you'd like to override the default retry strategy for all operations that sup
|
|
|
366
349
|
from plex_api_client import PlexAPI
|
|
367
350
|
from plex_api_client.utils import BackoffStrategy, RetryConfig
|
|
368
351
|
|
|
352
|
+
|
|
369
353
|
with PlexAPI(
|
|
370
354
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
|
371
355
|
access_token="<YOUR_API_KEY_HERE>",
|
|
@@ -409,6 +393,7 @@ When custom error responses are specified for an operation, the SDK may also rai
|
|
|
409
393
|
from plex_api_client import PlexAPI
|
|
410
394
|
from plex_api_client.models import errors
|
|
411
395
|
|
|
396
|
+
|
|
412
397
|
with PlexAPI(
|
|
413
398
|
access_token="<YOUR_API_KEY_HERE>",
|
|
414
399
|
) as plex_api:
|
|
@@ -440,16 +425,42 @@ with PlexAPI(
|
|
|
440
425
|
### Server Variables
|
|
441
426
|
|
|
442
427
|
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:
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
428
|
+
|
|
429
|
+
| Variable | Parameter | Supported Values | Default | Description |
|
|
430
|
+
| ---------- | --------------------------------- | -------------------------- | --------------- | ---------------------------------------------- |
|
|
431
|
+
| `protocol` | `protocol: models.ServerProtocol` | - `"http"`<br/>- `"https"` | `"https"` | The protocol to use for the server connection |
|
|
432
|
+
| `ip` | `ip: str` | str | `"10.10.10.47"` | The IP address or hostname of your Plex Server |
|
|
433
|
+
| `port` | `port: str` | str | `"32400"` | The port of your Plex Server |
|
|
434
|
+
|
|
435
|
+
#### Example
|
|
436
|
+
|
|
437
|
+
```python
|
|
438
|
+
from plex_api_client import PlexAPI
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
with PlexAPI(
|
|
442
|
+
protocol="https"
|
|
443
|
+
ip="e0c3:bcc0:6bac:dccc:c4ec:34b1:ca98:4cb9"
|
|
444
|
+
port="40311"
|
|
445
|
+
access_token="<YOUR_API_KEY_HERE>",
|
|
446
|
+
) as plex_api:
|
|
447
|
+
|
|
448
|
+
res = plex_api.server.get_server_capabilities()
|
|
449
|
+
|
|
450
|
+
assert res.object is not None
|
|
451
|
+
|
|
452
|
+
# Handle response
|
|
453
|
+
print(res.object)
|
|
454
|
+
|
|
455
|
+
```
|
|
446
456
|
|
|
447
457
|
### Override Server URL Per-Client
|
|
448
458
|
|
|
449
|
-
The default server can
|
|
459
|
+
The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
|
450
460
|
```python
|
|
451
461
|
from plex_api_client import PlexAPI
|
|
452
462
|
|
|
463
|
+
|
|
453
464
|
with PlexAPI(
|
|
454
465
|
server_url="https://10.10.10.47:32400",
|
|
455
466
|
access_token="<YOUR_API_KEY_HERE>",
|
|
@@ -470,6 +481,7 @@ The server URL can also be overridden on a per-operation basis, provided a serve
|
|
|
470
481
|
```python
|
|
471
482
|
from plex_api_client import PlexAPI
|
|
472
483
|
|
|
484
|
+
|
|
473
485
|
with PlexAPI(
|
|
474
486
|
access_token="<YOUR_API_KEY_HERE>",
|
|
475
487
|
) as plex_api:
|
|
@@ -580,6 +592,7 @@ To authenticate with the API the `access_token` parameter must be set when initi
|
|
|
580
592
|
```python
|
|
581
593
|
from plex_api_client import PlexAPI
|
|
582
594
|
|
|
595
|
+
|
|
583
596
|
with PlexAPI(
|
|
584
597
|
access_token="<YOUR_API_KEY_HERE>",
|
|
585
598
|
) as plex_api:
|
|
@@ -604,6 +617,7 @@ The `PlexAPI` class implements the context manager protocol and registers a fina
|
|
|
604
617
|
```python
|
|
605
618
|
from plex_api_client import PlexAPI
|
|
606
619
|
def main():
|
|
620
|
+
|
|
607
621
|
with PlexAPI(
|
|
608
622
|
access_token="<YOUR_API_KEY_HERE>",
|
|
609
623
|
) as plex_api:
|
|
@@ -612,6 +626,7 @@ def main():
|
|
|
612
626
|
|
|
613
627
|
# Or when using async:
|
|
614
628
|
async def amain():
|
|
629
|
+
|
|
615
630
|
async with PlexAPI(
|
|
616
631
|
access_token="<YOUR_API_KEY_HERE>",
|
|
617
632
|
) as plex_api:
|
|
@@ -650,4 +665,3 @@ While we value open-source contributions to this SDK, this library is generated
|
|
|
650
665
|
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!
|
|
651
666
|
|
|
652
667
|
### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
|
|
653
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "plex-api-client"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.24.0"
|
|
4
4
|
description = "Python Client SDK Generated by Speakeasy"
|
|
5
5
|
authors = [{ name = "Speakeasy" },]
|
|
6
6
|
readme = "README-PYPI.md"
|
|
@@ -10,7 +10,7 @@ dependencies = [
|
|
|
10
10
|
"httpx >=0.28.1",
|
|
11
11
|
"pydantic >=2.10.3",
|
|
12
12
|
"python-dateutil >=2.8.2",
|
|
13
|
-
"typing-
|
|
13
|
+
"typing-inspection >=0.4.0",
|
|
14
14
|
]
|
|
15
15
|
|
|
16
16
|
[tool.poetry]
|
|
@@ -7,16 +7,19 @@ from typing import Any, Callable, List, Optional, Tuple, Union
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class HookContext:
|
|
10
|
+
base_url: str
|
|
10
11
|
operation_id: str
|
|
11
12
|
oauth2_scopes: Optional[List[str]] = None
|
|
12
13
|
security_source: Optional[Union[Any, Callable[[], Any]]] = None
|
|
13
14
|
|
|
14
15
|
def __init__(
|
|
15
16
|
self,
|
|
17
|
+
base_url: str,
|
|
16
18
|
operation_id: str,
|
|
17
19
|
oauth2_scopes: Optional[List[str]],
|
|
18
20
|
security_source: Optional[Union[Any, Callable[[], Any]]],
|
|
19
21
|
):
|
|
22
|
+
self.base_url = base_url
|
|
20
23
|
self.operation_id = operation_id
|
|
21
24
|
self.oauth2_scopes = oauth2_scopes
|
|
22
25
|
self.security_source = security_source
|
|
@@ -25,21 +28,30 @@ class HookContext:
|
|
|
25
28
|
class BeforeRequestContext(HookContext):
|
|
26
29
|
def __init__(self, hook_ctx: HookContext):
|
|
27
30
|
super().__init__(
|
|
28
|
-
hook_ctx.
|
|
31
|
+
hook_ctx.base_url,
|
|
32
|
+
hook_ctx.operation_id,
|
|
33
|
+
hook_ctx.oauth2_scopes,
|
|
34
|
+
hook_ctx.security_source,
|
|
29
35
|
)
|
|
30
36
|
|
|
31
37
|
|
|
32
38
|
class AfterSuccessContext(HookContext):
|
|
33
39
|
def __init__(self, hook_ctx: HookContext):
|
|
34
40
|
super().__init__(
|
|
35
|
-
hook_ctx.
|
|
41
|
+
hook_ctx.base_url,
|
|
42
|
+
hook_ctx.operation_id,
|
|
43
|
+
hook_ctx.oauth2_scopes,
|
|
44
|
+
hook_ctx.security_source,
|
|
36
45
|
)
|
|
37
46
|
|
|
38
47
|
|
|
39
48
|
class AfterErrorContext(HookContext):
|
|
40
49
|
def __init__(self, hook_ctx: HookContext):
|
|
41
50
|
super().__init__(
|
|
42
|
-
hook_ctx.
|
|
51
|
+
hook_ctx.base_url,
|
|
52
|
+
hook_ctx.operation_id,
|
|
53
|
+
hook_ctx.oauth2_scopes,
|
|
54
|
+
hook_ctx.security_source,
|
|
43
55
|
)
|
|
44
56
|
|
|
45
57
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "plex-api-client"
|
|
6
|
-
__version__: str = "0.
|
|
6
|
+
__version__: str = "0.24.0"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.3"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.
|
|
8
|
+
__gen_version__: str = "2.545.4"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.24.0 2.545.4 0.0.3 plex-api-client"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -43,6 +43,8 @@ class Activities(BaseSDK):
|
|
|
43
43
|
|
|
44
44
|
if server_url is not None:
|
|
45
45
|
base_url = server_url
|
|
46
|
+
else:
|
|
47
|
+
base_url = self._get_url(base_url, url_variables)
|
|
46
48
|
req = self._build_request(
|
|
47
49
|
method="GET",
|
|
48
50
|
path="/activities",
|
|
@@ -69,6 +71,7 @@ class Activities(BaseSDK):
|
|
|
69
71
|
|
|
70
72
|
http_res = self.do_request(
|
|
71
73
|
hook_ctx=HookContext(
|
|
74
|
+
base_url=base_url or "",
|
|
72
75
|
operation_id="getServerActivities",
|
|
73
76
|
oauth2_scopes=[],
|
|
74
77
|
security_source=self.sdk_configuration.security,
|
|
@@ -144,6 +147,8 @@ class Activities(BaseSDK):
|
|
|
144
147
|
|
|
145
148
|
if server_url is not None:
|
|
146
149
|
base_url = server_url
|
|
150
|
+
else:
|
|
151
|
+
base_url = self._get_url(base_url, url_variables)
|
|
147
152
|
req = self._build_request_async(
|
|
148
153
|
method="GET",
|
|
149
154
|
path="/activities",
|
|
@@ -170,6 +175,7 @@ class Activities(BaseSDK):
|
|
|
170
175
|
|
|
171
176
|
http_res = await self.do_request_async(
|
|
172
177
|
hook_ctx=HookContext(
|
|
178
|
+
base_url=base_url or "",
|
|
173
179
|
operation_id="getServerActivities",
|
|
174
180
|
oauth2_scopes=[],
|
|
175
181
|
security_source=self.sdk_configuration.security,
|
|
@@ -247,6 +253,8 @@ class Activities(BaseSDK):
|
|
|
247
253
|
|
|
248
254
|
if server_url is not None:
|
|
249
255
|
base_url = server_url
|
|
256
|
+
else:
|
|
257
|
+
base_url = self._get_url(base_url, url_variables)
|
|
250
258
|
|
|
251
259
|
request = operations.CancelServerActivitiesRequest(
|
|
252
260
|
activity_uuid=activity_uuid,
|
|
@@ -278,6 +286,7 @@ class Activities(BaseSDK):
|
|
|
278
286
|
|
|
279
287
|
http_res = self.do_request(
|
|
280
288
|
hook_ctx=HookContext(
|
|
289
|
+
base_url=base_url or "",
|
|
281
290
|
operation_id="cancelServerActivities",
|
|
282
291
|
oauth2_scopes=[],
|
|
283
292
|
security_source=self.sdk_configuration.security,
|
|
@@ -352,6 +361,8 @@ class Activities(BaseSDK):
|
|
|
352
361
|
|
|
353
362
|
if server_url is not None:
|
|
354
363
|
base_url = server_url
|
|
364
|
+
else:
|
|
365
|
+
base_url = self._get_url(base_url, url_variables)
|
|
355
366
|
|
|
356
367
|
request = operations.CancelServerActivitiesRequest(
|
|
357
368
|
activity_uuid=activity_uuid,
|
|
@@ -383,6 +394,7 @@ class Activities(BaseSDK):
|
|
|
383
394
|
|
|
384
395
|
http_res = await self.do_request_async(
|
|
385
396
|
hook_ctx=HookContext(
|
|
397
|
+
base_url=base_url or "",
|
|
386
398
|
operation_id="cancelServerActivities",
|
|
387
399
|
oauth2_scopes=[],
|
|
388
400
|
security_source=self.sdk_configuration.security,
|
|
@@ -40,6 +40,8 @@ class Authentication(BaseSDK):
|
|
|
40
40
|
|
|
41
41
|
if server_url is not None:
|
|
42
42
|
base_url = server_url
|
|
43
|
+
else:
|
|
44
|
+
base_url = self._get_url(base_url, url_variables)
|
|
43
45
|
|
|
44
46
|
request = operations.GetTransientTokenRequest(
|
|
45
47
|
type=type_,
|
|
@@ -72,6 +74,7 @@ class Authentication(BaseSDK):
|
|
|
72
74
|
|
|
73
75
|
http_res = self.do_request(
|
|
74
76
|
hook_ctx=HookContext(
|
|
77
|
+
base_url=base_url or "",
|
|
75
78
|
operation_id="getTransientToken",
|
|
76
79
|
oauth2_scopes=[],
|
|
77
80
|
security_source=self.sdk_configuration.security,
|
|
@@ -149,6 +152,8 @@ class Authentication(BaseSDK):
|
|
|
149
152
|
|
|
150
153
|
if server_url is not None:
|
|
151
154
|
base_url = server_url
|
|
155
|
+
else:
|
|
156
|
+
base_url = self._get_url(base_url, url_variables)
|
|
152
157
|
|
|
153
158
|
request = operations.GetTransientTokenRequest(
|
|
154
159
|
type=type_,
|
|
@@ -181,6 +186,7 @@ class Authentication(BaseSDK):
|
|
|
181
186
|
|
|
182
187
|
http_res = await self.do_request_async(
|
|
183
188
|
hook_ctx=HookContext(
|
|
189
|
+
base_url=base_url or "",
|
|
184
190
|
operation_id="getTransientToken",
|
|
185
191
|
oauth2_scopes=[],
|
|
186
192
|
security_source=self.sdk_configuration.security,
|
|
@@ -257,6 +263,8 @@ class Authentication(BaseSDK):
|
|
|
257
263
|
|
|
258
264
|
if server_url is not None:
|
|
259
265
|
base_url = server_url
|
|
266
|
+
else:
|
|
267
|
+
base_url = self._get_url(base_url, url_variables)
|
|
260
268
|
|
|
261
269
|
request = operations.GetSourceConnectionInformationRequest(
|
|
262
270
|
source=source,
|
|
@@ -288,6 +296,7 @@ class Authentication(BaseSDK):
|
|
|
288
296
|
|
|
289
297
|
http_res = self.do_request(
|
|
290
298
|
hook_ctx=HookContext(
|
|
299
|
+
base_url=base_url or "",
|
|
291
300
|
operation_id="getSourceConnectionInformation",
|
|
292
301
|
oauth2_scopes=[],
|
|
293
302
|
security_source=self.sdk_configuration.security,
|
|
@@ -364,6 +373,8 @@ class Authentication(BaseSDK):
|
|
|
364
373
|
|
|
365
374
|
if server_url is not None:
|
|
366
375
|
base_url = server_url
|
|
376
|
+
else:
|
|
377
|
+
base_url = self._get_url(base_url, url_variables)
|
|
367
378
|
|
|
368
379
|
request = operations.GetSourceConnectionInformationRequest(
|
|
369
380
|
source=source,
|
|
@@ -395,6 +406,7 @@ class Authentication(BaseSDK):
|
|
|
395
406
|
|
|
396
407
|
http_res = await self.do_request_async(
|
|
397
408
|
hook_ctx=HookContext(
|
|
409
|
+
base_url=base_url or "",
|
|
398
410
|
operation_id="getSourceConnectionInformation",
|
|
399
411
|
oauth2_scopes=[],
|
|
400
412
|
security_source=self.sdk_configuration.security,
|
|
@@ -495,6 +507,7 @@ class Authentication(BaseSDK):
|
|
|
495
507
|
|
|
496
508
|
http_res = self.do_request(
|
|
497
509
|
hook_ctx=HookContext(
|
|
510
|
+
base_url=base_url or "",
|
|
498
511
|
operation_id="getTokenDetails",
|
|
499
512
|
oauth2_scopes=[],
|
|
500
513
|
security_source=self.sdk_configuration.security,
|
|
@@ -598,6 +611,7 @@ class Authentication(BaseSDK):
|
|
|
598
611
|
|
|
599
612
|
http_res = await self.do_request_async(
|
|
600
613
|
hook_ctx=HookContext(
|
|
614
|
+
base_url=base_url or "",
|
|
601
615
|
operation_id="getTokenDetails",
|
|
602
616
|
oauth2_scopes=[],
|
|
603
617
|
security_source=self.sdk_configuration.security,
|
|
@@ -717,6 +731,7 @@ class Authentication(BaseSDK):
|
|
|
717
731
|
|
|
718
732
|
http_res = self.do_request(
|
|
719
733
|
hook_ctx=HookContext(
|
|
734
|
+
base_url=base_url or "",
|
|
720
735
|
operation_id="post-users-sign-in-data",
|
|
721
736
|
oauth2_scopes=[],
|
|
722
737
|
security_source=None,
|
|
@@ -837,6 +852,7 @@ class Authentication(BaseSDK):
|
|
|
837
852
|
|
|
838
853
|
http_res = await self.do_request_async(
|
|
839
854
|
hook_ctx=HookContext(
|
|
855
|
+
base_url=base_url or "",
|
|
840
856
|
operation_id="post-users-sign-in-data",
|
|
841
857
|
oauth2_scopes=[],
|
|
842
858
|
security_source=None,
|
|
@@ -232,6 +232,10 @@ class BaseSDK:
|
|
|
232
232
|
req.headers,
|
|
233
233
|
get_body_content(req),
|
|
234
234
|
)
|
|
235
|
+
|
|
236
|
+
if client is None:
|
|
237
|
+
raise ValueError("client is required")
|
|
238
|
+
|
|
235
239
|
http_res = client.send(req, stream=stream)
|
|
236
240
|
except Exception as e:
|
|
237
241
|
_, e = self.sdk_configuration.get_hooks().after_error(
|
|
@@ -304,6 +308,10 @@ class BaseSDK:
|
|
|
304
308
|
req.headers,
|
|
305
309
|
get_body_content(req),
|
|
306
310
|
)
|
|
311
|
+
|
|
312
|
+
if client is None:
|
|
313
|
+
raise ValueError("client is required")
|
|
314
|
+
|
|
307
315
|
http_res = await client.send(req, stream=stream)
|
|
308
316
|
except Exception as e:
|
|
309
317
|
_, e = self.sdk_configuration.get_hooks().after_error(
|