plex-api-client 0.12.1__tar.gz → 0.13.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.12.1 → plex_api_client-0.13.0}/PKG-INFO +61 -19
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/README-PYPI.md +60 -18
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/pyproject.toml +1 -1
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/authentication.py +20 -32
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/components/security.py +1 -1
- plex_api_client-0.13.0/src/plex_api_client/models/internal/globals.py +58 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/__init__.py +34 -16
- plex_api_client-0.13.0/src/plex_api_client/models/operations/get_all_libraries.py +151 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_library_items.py +228 -67
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_search_library.py +4 -4
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_server_resources.py +34 -52
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getgeodata.py +2 -2
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getpin.py +46 -31
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getplaylistcontents.py +4 -4
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/gettokenbypinid.py +5 -44
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/gettokendetails.py +28 -30
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/gettopwatchedcontent.py +4 -4
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/post_users_sign_in_data.py +29 -85
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/uploadplaylist.py +10 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/playlists.py +6 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/plex.py +44 -62
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/sdk.py +18 -4
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/sdkconfiguration.py +3 -3
- plex_api_client-0.12.1/src/plex_api_client/models/internal/globals.py +0 -30
- plex_api_client-0.12.1/src/plex_api_client/models/operations/get_all_libraries.py +0 -155
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/LICENSE.md +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/py.typed +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/__init__.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/_hooks/__init__.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/_hooks/registration.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/_hooks/sdkhooks.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/_hooks/types.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/activities.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/basesdk.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/butler.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/httpclient.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/hubs.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/library.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/log.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/media.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/components/__init__.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/__init__.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/addplaylistcontents.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/applyupdates.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/cancelserveractivities.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/checkforupdates.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/clearplaylistcontents.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/createplaylist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/deletelibrary.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/deleteplaylist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/enablepapertrail.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_all_libraries.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_banner_image.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_library_details.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_library_items.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_media_providers.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_meta_data_by_rating_key.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_search_library.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_server_identity.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_server_resources.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_thumb_image.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/get_watch_list.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getavailableclients.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getbandwidthstatistics.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getbutlertasks.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getcompanionsdata.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getdevices.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getfilehash.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getgeodata.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getglobalhubs.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/gethomedata.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getlibraryhubs.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getmetadatachildren.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getmyplexaccount.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getondeck.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getpin.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getplaylist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getplaylistcontents.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getplaylists.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getrecentlyadded.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getresizedphoto.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getresourcesstatistics.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getsearchresults.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getserveractivities.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getservercapabilities.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getserverlist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getserverpreferences.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getsessionhistory.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getsessions.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getstatistics.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/gettimeline.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/gettokenbypinid.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/gettokendetails.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/gettopwatchedcontent.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/gettranscodesessions.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/gettransienttoken.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getupdatestatus.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/getuserfriends.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/logline.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/logmultiline.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/markplayed.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/markunplayed.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/performsearch.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/performvoicesearch.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/post_users_sign_in_data.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/sdkerror.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/startalltasks.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/starttask.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/startuniversaltranscode.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/stopalltasks.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/stoptask.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/stoptranscodesession.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/updateplaylist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/updateplayprogress.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/errors/uploadplaylist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/internal/__init__.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/addplaylistcontents.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/applyupdates.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/cancelserveractivities.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/checkforupdates.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/clearplaylistcontents.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/createplaylist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/deletelibrary.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/deleteplaylist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/enablepapertrail.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_banner_image.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_library_details.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_media_providers.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_meta_data_by_rating_key.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_server_identity.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_thumb_image.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/get_watch_list.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getavailableclients.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getbandwidthstatistics.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getbutlertasks.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getcompanionsdata.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getdevices.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getfilehash.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getglobalhubs.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/gethomedata.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getlibraryhubs.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getmetadatachildren.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getmyplexaccount.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getondeck.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getplaylist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getplaylists.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getrecentlyadded.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getresizedphoto.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getresourcesstatistics.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getsearchresults.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getserveractivities.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getservercapabilities.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getserverlist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getserverpreferences.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getsessionhistory.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getsessions.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getstatistics.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/gettimeline.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/gettranscodesessions.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/gettransienttoken.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getupdatestatus.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/getuserfriends.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/logline.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/logmultiline.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/markplayed.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/markunplayed.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/performsearch.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/performvoicesearch.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/startalltasks.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/starttask.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/startuniversaltranscode.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/stopalltasks.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/stoptask.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/stoptranscodesession.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/updateplaylist.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/models/operations/updateplayprogress.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/py.typed +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/search.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/server.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/sessions.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/statistics.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/types/__init__.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/types/basemodel.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/updater.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/__init__.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/annotations.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/enums.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/eventstreaming.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/forms.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/headers.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/logger.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/metadata.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/queryparams.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/requestbodies.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/retries.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/security.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/serializers.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/url.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/utils/values.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/video.py +0 -0
- {plex_api_client-0.12.1 → plex_api_client-0.13.0}/src/plex_api_client/watchlist.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: plex-api-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.0
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy
|
|
5
5
|
Home-page: https://github.com/LukeHagar/plexpy.git
|
|
6
6
|
Author: Speakeasy
|
|
@@ -94,7 +94,11 @@ from plex_api_client import PlexAPI
|
|
|
94
94
|
|
|
95
95
|
s = PlexAPI(
|
|
96
96
|
access_token="<YOUR_API_KEY_HERE>",
|
|
97
|
-
|
|
97
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
98
|
+
client_name="Plex Web",
|
|
99
|
+
client_version="4.133.0",
|
|
100
|
+
client_platform="Chrome",
|
|
101
|
+
device_name="Linux",
|
|
98
102
|
)
|
|
99
103
|
|
|
100
104
|
res = s.server.get_server_capabilities()
|
|
@@ -115,7 +119,11 @@ from plex_api_client import PlexAPI
|
|
|
115
119
|
async def main():
|
|
116
120
|
s = PlexAPI(
|
|
117
121
|
access_token="<YOUR_API_KEY_HERE>",
|
|
118
|
-
|
|
122
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
123
|
+
client_name="Plex Web",
|
|
124
|
+
client_version="4.133.0",
|
|
125
|
+
client_platform="Chrome",
|
|
126
|
+
device_name="Linux",
|
|
119
127
|
)
|
|
120
128
|
res = await s.server.get_server_capabilities_async()
|
|
121
129
|
if res.object is not None:
|
|
@@ -270,7 +278,11 @@ from plex_api_client import PlexAPI
|
|
|
270
278
|
|
|
271
279
|
s = PlexAPI(
|
|
272
280
|
access_token="<YOUR_API_KEY_HERE>",
|
|
273
|
-
|
|
281
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
282
|
+
client_name="Plex Web",
|
|
283
|
+
client_version="4.133.0",
|
|
284
|
+
client_platform="Chrome",
|
|
285
|
+
device_name="Linux",
|
|
274
286
|
)
|
|
275
287
|
|
|
276
288
|
res = s.server.get_server_capabilities(,
|
|
@@ -290,7 +302,11 @@ from plex_api_client import PlexAPI
|
|
|
290
302
|
s = PlexAPI(
|
|
291
303
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
|
292
304
|
access_token="<YOUR_API_KEY_HERE>",
|
|
293
|
-
|
|
305
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
306
|
+
client_name="Plex Web",
|
|
307
|
+
client_version="4.133.0",
|
|
308
|
+
client_platform="Chrome",
|
|
309
|
+
device_name="Linux",
|
|
294
310
|
)
|
|
295
311
|
|
|
296
312
|
res = s.server.get_server_capabilities()
|
|
@@ -321,7 +337,11 @@ from plex_api_client.models import errors
|
|
|
321
337
|
|
|
322
338
|
s = PlexAPI(
|
|
323
339
|
access_token="<YOUR_API_KEY_HERE>",
|
|
324
|
-
|
|
340
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
341
|
+
client_name="Plex Web",
|
|
342
|
+
client_version="4.133.0",
|
|
343
|
+
client_platform="Chrome",
|
|
344
|
+
device_name="Linux",
|
|
325
345
|
)
|
|
326
346
|
|
|
327
347
|
res = None
|
|
@@ -363,7 +383,11 @@ from plex_api_client import PlexAPI
|
|
|
363
383
|
s = PlexAPI(
|
|
364
384
|
server_idx=0,
|
|
365
385
|
access_token="<YOUR_API_KEY_HERE>",
|
|
366
|
-
|
|
386
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
387
|
+
client_name="Plex Web",
|
|
388
|
+
client_version="4.133.0",
|
|
389
|
+
client_platform="Chrome",
|
|
390
|
+
device_name="Linux",
|
|
367
391
|
)
|
|
368
392
|
|
|
369
393
|
res = s.server.get_server_capabilities()
|
|
@@ -390,7 +414,11 @@ from plex_api_client import PlexAPI
|
|
|
390
414
|
s = PlexAPI(
|
|
391
415
|
server_url="{protocol}://{ip}:{port}",
|
|
392
416
|
access_token="<YOUR_API_KEY_HERE>",
|
|
393
|
-
|
|
417
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
418
|
+
client_name="Plex Web",
|
|
419
|
+
client_version="4.133.0",
|
|
420
|
+
client_platform="Chrome",
|
|
421
|
+
device_name="Linux",
|
|
394
422
|
)
|
|
395
423
|
|
|
396
424
|
res = s.server.get_server_capabilities()
|
|
@@ -409,7 +437,11 @@ from plex_api_client import PlexAPI
|
|
|
409
437
|
|
|
410
438
|
s = PlexAPI(
|
|
411
439
|
access_token="<YOUR_API_KEY_HERE>",
|
|
412
|
-
|
|
440
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
441
|
+
client_name="Plex Web",
|
|
442
|
+
client_version="4.133.0",
|
|
443
|
+
client_platform="Chrome",
|
|
444
|
+
device_name="Linux",
|
|
413
445
|
)
|
|
414
446
|
|
|
415
447
|
res = s.plex.get_companions_data(server_url="https://plex.tv/api/v2/")
|
|
@@ -519,7 +551,11 @@ from plex_api_client import PlexAPI
|
|
|
519
551
|
|
|
520
552
|
s = PlexAPI(
|
|
521
553
|
access_token="<YOUR_API_KEY_HERE>",
|
|
522
|
-
|
|
554
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
555
|
+
client_name="Plex Web",
|
|
556
|
+
client_version="4.133.0",
|
|
557
|
+
client_platform="Chrome",
|
|
558
|
+
device_name="Linux",
|
|
523
559
|
)
|
|
524
560
|
|
|
525
561
|
res = s.server.get_server_capabilities()
|
|
@@ -534,37 +570,43 @@ if res.object is not None:
|
|
|
534
570
|
<!-- Start Global Parameters [global-parameters] -->
|
|
535
571
|
## Global Parameters
|
|
536
572
|
|
|
537
|
-
|
|
573
|
+
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.
|
|
538
574
|
|
|
539
|
-
For example, you can set `
|
|
575
|
+
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `get_pin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
|
540
576
|
|
|
541
577
|
|
|
542
578
|
### Available Globals
|
|
543
579
|
|
|
544
|
-
The following global
|
|
580
|
+
The following global parameters are available.
|
|
545
581
|
|
|
546
582
|
| Name | Type | Required | Description |
|
|
547
583
|
| ---- | ---- |:--------:| ----------- |
|
|
548
|
-
|
|
|
584
|
+
| client_id | str | | The unique identifier for the client application
|
|
549
585
|
This is used to track the client application and its usage
|
|
550
586
|
(UUID, serial number, or other number unique per device)
|
|
551
587
|
|
|
|
588
|
+
| client_name | str | | The client_name parameter. |
|
|
589
|
+
| client_version | str | | The client_version parameter. |
|
|
590
|
+
| client_platform | str | | The client_platform parameter. |
|
|
591
|
+
| device_name | str | | The device_name parameter. |
|
|
552
592
|
|
|
553
593
|
|
|
554
594
|
### Example
|
|
555
595
|
|
|
556
596
|
```python
|
|
557
597
|
from plex_api_client import PlexAPI
|
|
558
|
-
from plex_api_client.models import operations
|
|
559
598
|
|
|
560
599
|
s = PlexAPI(
|
|
561
|
-
|
|
562
|
-
|
|
600
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
601
|
+
client_name="Plex Web",
|
|
602
|
+
client_version="4.133.0",
|
|
603
|
+
client_platform="Chrome",
|
|
604
|
+
device_name="Linux",
|
|
563
605
|
)
|
|
564
606
|
|
|
565
|
-
res = s.plex.
|
|
607
|
+
res = s.plex.get_pin(request={})
|
|
566
608
|
|
|
567
|
-
if res.
|
|
609
|
+
if res.auth_pin_container is not None:
|
|
568
610
|
# handle response
|
|
569
611
|
pass
|
|
570
612
|
|
|
@@ -72,7 +72,11 @@ from plex_api_client import PlexAPI
|
|
|
72
72
|
|
|
73
73
|
s = PlexAPI(
|
|
74
74
|
access_token="<YOUR_API_KEY_HERE>",
|
|
75
|
-
|
|
75
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
76
|
+
client_name="Plex Web",
|
|
77
|
+
client_version="4.133.0",
|
|
78
|
+
client_platform="Chrome",
|
|
79
|
+
device_name="Linux",
|
|
76
80
|
)
|
|
77
81
|
|
|
78
82
|
res = s.server.get_server_capabilities()
|
|
@@ -93,7 +97,11 @@ from plex_api_client import PlexAPI
|
|
|
93
97
|
async def main():
|
|
94
98
|
s = PlexAPI(
|
|
95
99
|
access_token="<YOUR_API_KEY_HERE>",
|
|
96
|
-
|
|
100
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
101
|
+
client_name="Plex Web",
|
|
102
|
+
client_version="4.133.0",
|
|
103
|
+
client_platform="Chrome",
|
|
104
|
+
device_name="Linux",
|
|
97
105
|
)
|
|
98
106
|
res = await s.server.get_server_capabilities_async()
|
|
99
107
|
if res.object is not None:
|
|
@@ -248,7 +256,11 @@ from plex_api_client import PlexAPI
|
|
|
248
256
|
|
|
249
257
|
s = PlexAPI(
|
|
250
258
|
access_token="<YOUR_API_KEY_HERE>",
|
|
251
|
-
|
|
259
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
260
|
+
client_name="Plex Web",
|
|
261
|
+
client_version="4.133.0",
|
|
262
|
+
client_platform="Chrome",
|
|
263
|
+
device_name="Linux",
|
|
252
264
|
)
|
|
253
265
|
|
|
254
266
|
res = s.server.get_server_capabilities(,
|
|
@@ -268,7 +280,11 @@ from plex_api_client import PlexAPI
|
|
|
268
280
|
s = PlexAPI(
|
|
269
281
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
|
270
282
|
access_token="<YOUR_API_KEY_HERE>",
|
|
271
|
-
|
|
283
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
284
|
+
client_name="Plex Web",
|
|
285
|
+
client_version="4.133.0",
|
|
286
|
+
client_platform="Chrome",
|
|
287
|
+
device_name="Linux",
|
|
272
288
|
)
|
|
273
289
|
|
|
274
290
|
res = s.server.get_server_capabilities()
|
|
@@ -299,7 +315,11 @@ from plex_api_client.models import errors
|
|
|
299
315
|
|
|
300
316
|
s = PlexAPI(
|
|
301
317
|
access_token="<YOUR_API_KEY_HERE>",
|
|
302
|
-
|
|
318
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
319
|
+
client_name="Plex Web",
|
|
320
|
+
client_version="4.133.0",
|
|
321
|
+
client_platform="Chrome",
|
|
322
|
+
device_name="Linux",
|
|
303
323
|
)
|
|
304
324
|
|
|
305
325
|
res = None
|
|
@@ -341,7 +361,11 @@ from plex_api_client import PlexAPI
|
|
|
341
361
|
s = PlexAPI(
|
|
342
362
|
server_idx=0,
|
|
343
363
|
access_token="<YOUR_API_KEY_HERE>",
|
|
344
|
-
|
|
364
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
365
|
+
client_name="Plex Web",
|
|
366
|
+
client_version="4.133.0",
|
|
367
|
+
client_platform="Chrome",
|
|
368
|
+
device_name="Linux",
|
|
345
369
|
)
|
|
346
370
|
|
|
347
371
|
res = s.server.get_server_capabilities()
|
|
@@ -368,7 +392,11 @@ from plex_api_client import PlexAPI
|
|
|
368
392
|
s = PlexAPI(
|
|
369
393
|
server_url="{protocol}://{ip}:{port}",
|
|
370
394
|
access_token="<YOUR_API_KEY_HERE>",
|
|
371
|
-
|
|
395
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
396
|
+
client_name="Plex Web",
|
|
397
|
+
client_version="4.133.0",
|
|
398
|
+
client_platform="Chrome",
|
|
399
|
+
device_name="Linux",
|
|
372
400
|
)
|
|
373
401
|
|
|
374
402
|
res = s.server.get_server_capabilities()
|
|
@@ -387,7 +415,11 @@ from plex_api_client import PlexAPI
|
|
|
387
415
|
|
|
388
416
|
s = PlexAPI(
|
|
389
417
|
access_token="<YOUR_API_KEY_HERE>",
|
|
390
|
-
|
|
418
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
419
|
+
client_name="Plex Web",
|
|
420
|
+
client_version="4.133.0",
|
|
421
|
+
client_platform="Chrome",
|
|
422
|
+
device_name="Linux",
|
|
391
423
|
)
|
|
392
424
|
|
|
393
425
|
res = s.plex.get_companions_data(server_url="https://plex.tv/api/v2/")
|
|
@@ -497,7 +529,11 @@ from plex_api_client import PlexAPI
|
|
|
497
529
|
|
|
498
530
|
s = PlexAPI(
|
|
499
531
|
access_token="<YOUR_API_KEY_HERE>",
|
|
500
|
-
|
|
532
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
533
|
+
client_name="Plex Web",
|
|
534
|
+
client_version="4.133.0",
|
|
535
|
+
client_platform="Chrome",
|
|
536
|
+
device_name="Linux",
|
|
501
537
|
)
|
|
502
538
|
|
|
503
539
|
res = s.server.get_server_capabilities()
|
|
@@ -512,37 +548,43 @@ if res.object is not None:
|
|
|
512
548
|
<!-- Start Global Parameters [global-parameters] -->
|
|
513
549
|
## Global Parameters
|
|
514
550
|
|
|
515
|
-
|
|
551
|
+
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.
|
|
516
552
|
|
|
517
|
-
For example, you can set `
|
|
553
|
+
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `get_pin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
|
518
554
|
|
|
519
555
|
|
|
520
556
|
### Available Globals
|
|
521
557
|
|
|
522
|
-
The following global
|
|
558
|
+
The following global parameters are available.
|
|
523
559
|
|
|
524
560
|
| Name | Type | Required | Description |
|
|
525
561
|
| ---- | ---- |:--------:| ----------- |
|
|
526
|
-
|
|
|
562
|
+
| client_id | str | | The unique identifier for the client application
|
|
527
563
|
This is used to track the client application and its usage
|
|
528
564
|
(UUID, serial number, or other number unique per device)
|
|
529
565
|
|
|
|
566
|
+
| client_name | str | | The client_name parameter. |
|
|
567
|
+
| client_version | str | | The client_version parameter. |
|
|
568
|
+
| client_platform | str | | The client_platform parameter. |
|
|
569
|
+
| device_name | str | | The device_name parameter. |
|
|
530
570
|
|
|
531
571
|
|
|
532
572
|
### Example
|
|
533
573
|
|
|
534
574
|
```python
|
|
535
575
|
from plex_api_client import PlexAPI
|
|
536
|
-
from plex_api_client.models import operations
|
|
537
576
|
|
|
538
577
|
s = PlexAPI(
|
|
539
|
-
|
|
540
|
-
|
|
578
|
+
client_id="gcgzw5rz2xovp84b4vha3a40",
|
|
579
|
+
client_name="Plex Web",
|
|
580
|
+
client_version="4.133.0",
|
|
581
|
+
client_platform="Chrome",
|
|
582
|
+
device_name="Linux",
|
|
541
583
|
)
|
|
542
584
|
|
|
543
|
-
res = s.plex.
|
|
585
|
+
res = s.plex.get_pin(request={})
|
|
544
586
|
|
|
545
|
-
if res.
|
|
587
|
+
if res.auth_pin_container is not None:
|
|
546
588
|
# handle response
|
|
547
589
|
pass
|
|
548
590
|
|
|
@@ -4,8 +4,8 @@ from .basesdk import BaseSDK
|
|
|
4
4
|
from plex_api_client import utils
|
|
5
5
|
from plex_api_client._hooks import HookContext
|
|
6
6
|
from plex_api_client.models import errors, operations
|
|
7
|
-
from plex_api_client.types import OptionalNullable, UNSET
|
|
8
|
-
from typing import Any, Optional, Union
|
|
7
|
+
from plex_api_client.types import BaseModel, OptionalNullable, UNSET
|
|
8
|
+
from typing import Any, Optional, Union, cast
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class Authentication(BaseSDK):
|
|
@@ -592,8 +592,7 @@ class Authentication(BaseSDK):
|
|
|
592
592
|
def post_users_sign_in_data(
|
|
593
593
|
self,
|
|
594
594
|
*,
|
|
595
|
-
|
|
596
|
-
request_body: Optional[
|
|
595
|
+
request: Optional[
|
|
597
596
|
Union[
|
|
598
597
|
operations.PostUsersSignInDataRequestBody,
|
|
599
598
|
operations.PostUsersSignInDataRequestBodyTypedDict,
|
|
@@ -607,8 +606,7 @@ class Authentication(BaseSDK):
|
|
|
607
606
|
|
|
608
607
|
Sign in user with username and password and return user data with Plex authentication token
|
|
609
608
|
|
|
610
|
-
:param
|
|
611
|
-
:param request_body: Login credentials
|
|
609
|
+
:param request: The request object to send.
|
|
612
610
|
:param retries: Override the default retry configuration for this method
|
|
613
611
|
:param server_url: Override the default server URL for this method
|
|
614
612
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -623,12 +621,11 @@ class Authentication(BaseSDK):
|
|
|
623
621
|
else:
|
|
624
622
|
base_url = operations.POST_USERS_SIGN_IN_DATA_SERVERS[0]
|
|
625
623
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
)
|
|
624
|
+
if not isinstance(request, BaseModel):
|
|
625
|
+
request = utils.unmarshal(
|
|
626
|
+
request, Optional[operations.PostUsersSignInDataRequestBody]
|
|
627
|
+
)
|
|
628
|
+
request = cast(Optional[operations.PostUsersSignInDataRequestBody], request)
|
|
632
629
|
|
|
633
630
|
req = self.build_request(
|
|
634
631
|
method="POST",
|
|
@@ -638,14 +635,11 @@ class Authentication(BaseSDK):
|
|
|
638
635
|
request=request,
|
|
639
636
|
request_body_required=False,
|
|
640
637
|
request_has_path_params=False,
|
|
641
|
-
request_has_query_params=
|
|
638
|
+
request_has_query_params=False,
|
|
642
639
|
user_agent_header="user-agent",
|
|
643
640
|
accept_header_value="application/json",
|
|
644
|
-
_globals=operations.PostUsersSignInDataGlobals(
|
|
645
|
-
x_plex_client_identifier=self.sdk_configuration.globals.x_plex_client_identifier,
|
|
646
|
-
),
|
|
647
641
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
648
|
-
request
|
|
642
|
+
request,
|
|
649
643
|
False,
|
|
650
644
|
True,
|
|
651
645
|
"form",
|
|
@@ -712,8 +706,7 @@ class Authentication(BaseSDK):
|
|
|
712
706
|
async def post_users_sign_in_data_async(
|
|
713
707
|
self,
|
|
714
708
|
*,
|
|
715
|
-
|
|
716
|
-
request_body: Optional[
|
|
709
|
+
request: Optional[
|
|
717
710
|
Union[
|
|
718
711
|
operations.PostUsersSignInDataRequestBody,
|
|
719
712
|
operations.PostUsersSignInDataRequestBodyTypedDict,
|
|
@@ -727,8 +720,7 @@ class Authentication(BaseSDK):
|
|
|
727
720
|
|
|
728
721
|
Sign in user with username and password and return user data with Plex authentication token
|
|
729
722
|
|
|
730
|
-
:param
|
|
731
|
-
:param request_body: Login credentials
|
|
723
|
+
:param request: The request object to send.
|
|
732
724
|
:param retries: Override the default retry configuration for this method
|
|
733
725
|
:param server_url: Override the default server URL for this method
|
|
734
726
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -743,12 +735,11 @@ class Authentication(BaseSDK):
|
|
|
743
735
|
else:
|
|
744
736
|
base_url = operations.POST_USERS_SIGN_IN_DATA_SERVERS[0]
|
|
745
737
|
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
)
|
|
738
|
+
if not isinstance(request, BaseModel):
|
|
739
|
+
request = utils.unmarshal(
|
|
740
|
+
request, Optional[operations.PostUsersSignInDataRequestBody]
|
|
741
|
+
)
|
|
742
|
+
request = cast(Optional[operations.PostUsersSignInDataRequestBody], request)
|
|
752
743
|
|
|
753
744
|
req = self.build_request_async(
|
|
754
745
|
method="POST",
|
|
@@ -758,14 +749,11 @@ class Authentication(BaseSDK):
|
|
|
758
749
|
request=request,
|
|
759
750
|
request_body_required=False,
|
|
760
751
|
request_has_path_params=False,
|
|
761
|
-
request_has_query_params=
|
|
752
|
+
request_has_query_params=False,
|
|
762
753
|
user_agent_header="user-agent",
|
|
763
754
|
accept_header_value="application/json",
|
|
764
|
-
_globals=operations.PostUsersSignInDataGlobals(
|
|
765
|
-
x_plex_client_identifier=self.sdk_configuration.globals.x_plex_client_identifier,
|
|
766
|
-
),
|
|
767
755
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
768
|
-
request
|
|
756
|
+
request,
|
|
769
757
|
False,
|
|
770
758
|
True,
|
|
771
759
|
"form",
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from plex_api_client.types import BaseModel
|
|
5
|
+
from plex_api_client.utils import FieldMetadata, QueryParamMetadata
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing import Optional, TypedDict
|
|
8
|
+
from typing_extensions import Annotated, NotRequired
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GlobalsTypedDict(TypedDict):
|
|
12
|
+
client_id: NotRequired[str]
|
|
13
|
+
r"""The unique identifier for the client application
|
|
14
|
+
This is used to track the client application and its usage
|
|
15
|
+
(UUID, serial number, or other number unique per device)
|
|
16
|
+
|
|
17
|
+
"""
|
|
18
|
+
client_name: NotRequired[str]
|
|
19
|
+
client_version: NotRequired[str]
|
|
20
|
+
client_platform: NotRequired[str]
|
|
21
|
+
device_name: NotRequired[str]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Globals(BaseModel):
|
|
25
|
+
client_id: Annotated[
|
|
26
|
+
Optional[str],
|
|
27
|
+
pydantic.Field(alias="X-Plex-Client-Identifier"),
|
|
28
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
29
|
+
] = None
|
|
30
|
+
r"""The unique identifier for the client application
|
|
31
|
+
This is used to track the client application and its usage
|
|
32
|
+
(UUID, serial number, or other number unique per device)
|
|
33
|
+
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
client_name: Annotated[
|
|
37
|
+
Optional[str],
|
|
38
|
+
pydantic.Field(alias="X-Plex-Product"),
|
|
39
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
40
|
+
] = None
|
|
41
|
+
|
|
42
|
+
client_version: Annotated[
|
|
43
|
+
Optional[str],
|
|
44
|
+
pydantic.Field(alias="X-Plex-Version"),
|
|
45
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
46
|
+
] = None
|
|
47
|
+
|
|
48
|
+
client_platform: Annotated[
|
|
49
|
+
Optional[str],
|
|
50
|
+
pydantic.Field(alias="X-Plex-Platform"),
|
|
51
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
52
|
+
] = None
|
|
53
|
+
|
|
54
|
+
device_name: Annotated[
|
|
55
|
+
Optional[str],
|
|
56
|
+
pydantic.Field(alias="X-Plex-Device"),
|
|
57
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
58
|
+
] = None
|