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.
Files changed (207) hide show
  1. plex_api_client-0.18.1/README-PYPI.md → plex_api_client-0.19.1/PKG-INFO +35 -42
  2. plex_api_client-0.18.1/PKG-INFO → plex_api_client-0.19.1/README-PYPI.md +11 -65
  3. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/pyproject.toml +2 -2
  4. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/__init__.py +4 -0
  5. plex_api_client-0.19.1/src/plex_api_client/_version.py +12 -0
  6. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/activities.py +16 -8
  7. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/authentication.py +32 -16
  8. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/butler.py +40 -20
  9. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/hubs.py +24 -12
  10. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/library.py +104 -52
  11. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/log.py +24 -12
  12. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/media.py +56 -28
  13. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_library_items.py +1 -0
  14. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_recently_added.py +1 -0
  15. {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
  16. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_search_library.py +1 -0
  17. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getbandwidthstatistics.py +0 -1
  18. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getplaylistcontents.py +1 -0
  19. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getresourcesstatistics.py +0 -1
  20. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getstatistics.py +0 -1
  21. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettopwatchedcontent.py +1 -0
  22. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/playlists.py +72 -36
  23. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/plex.py +56 -28
  24. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/sdkconfiguration.py +3 -3
  25. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/search.py +24 -12
  26. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/server.py +72 -36
  27. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/sessions.py +32 -16
  28. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/statistics.py +24 -12
  29. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/updater.py +24 -12
  30. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/__init__.py +6 -0
  31. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/annotations.py +13 -2
  32. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/serializers.py +12 -0
  33. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/video.py +16 -8
  34. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/watchlist.py +8 -4
  35. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/LICENSE.md +0 -0
  36. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/py.typed +0 -0
  37. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/_hooks/__init__.py +0 -0
  38. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/_hooks/registration.py +0 -0
  39. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/_hooks/sdkhooks.py +0 -0
  40. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/_hooks/types.py +0 -0
  41. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/basesdk.py +0 -0
  42. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/httpclient.py +0 -0
  43. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/components/__init__.py +0 -0
  44. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/components/security.py +0 -0
  45. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/__init__.py +0 -0
  46. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/addplaylistcontents.py +0 -0
  47. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/applyupdates.py +0 -0
  48. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/cancelserveractivities.py +0 -0
  49. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/checkforupdates.py +0 -0
  50. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/clearplaylistcontents.py +0 -0
  51. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/createplaylist.py +0 -0
  52. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/deletelibrary.py +0 -0
  53. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/deleteplaylist.py +0 -0
  54. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/enablepapertrail.py +0 -0
  55. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_all_libraries.py +0 -0
  56. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_banner_image.py +0 -0
  57. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_library_details.py +0 -0
  58. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_library_items.py +0 -0
  59. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_media_providers.py +0 -0
  60. {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
  61. {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
  62. {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
  63. {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
  64. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_search_library.py +0 -0
  65. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_server_identity.py +0 -0
  66. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_server_resources.py +0 -0
  67. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_thumb_image.py +0 -0
  68. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/get_watch_list.py +0 -0
  69. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getavailableclients.py +0 -0
  70. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getbandwidthstatistics.py +0 -0
  71. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getbutlertasks.py +0 -0
  72. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getcompanionsdata.py +0 -0
  73. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getdevices.py +0 -0
  74. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getfilehash.py +0 -0
  75. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getgeodata.py +0 -0
  76. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getglobalhubs.py +0 -0
  77. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gethomedata.py +0 -0
  78. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getlibraryhubs.py +0 -0
  79. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getmetadatachildren.py +0 -0
  80. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getmyplexaccount.py +0 -0
  81. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getondeck.py +0 -0
  82. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getpin.py +0 -0
  83. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getplaylist.py +0 -0
  84. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getplaylistcontents.py +0 -0
  85. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getplaylists.py +0 -0
  86. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getresizedphoto.py +0 -0
  87. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getresourcesstatistics.py +0 -0
  88. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getsearchresults.py +0 -0
  89. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getserveractivities.py +0 -0
  90. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getservercapabilities.py +0 -0
  91. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getserverlist.py +0 -0
  92. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getserverpreferences.py +0 -0
  93. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getsessionhistory.py +0 -0
  94. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getsessions.py +0 -0
  95. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getsourceconnectioninformation.py +0 -0
  96. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getstatistics.py +0 -0
  97. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettimeline.py +0 -0
  98. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettokenbypinid.py +0 -0
  99. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettokendetails.py +0 -0
  100. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettopwatchedcontent.py +0 -0
  101. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettranscodesessions.py +0 -0
  102. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/gettransienttoken.py +0 -0
  103. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getupdatestatus.py +0 -0
  104. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/getuserfriends.py +0 -0
  105. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/logline.py +0 -0
  106. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/logmultiline.py +0 -0
  107. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/markplayed.py +0 -0
  108. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/markunplayed.py +0 -0
  109. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/performsearch.py +0 -0
  110. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/performvoicesearch.py +0 -0
  111. {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
  112. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/sdkerror.py +0 -0
  113. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/startalltasks.py +0 -0
  114. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/starttask.py +0 -0
  115. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/startuniversaltranscode.py +0 -0
  116. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/stopalltasks.py +0 -0
  117. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/stoptask.py +0 -0
  118. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/stoptranscodesession.py +0 -0
  119. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/updateplaylist.py +0 -0
  120. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/updateplayprogress.py +0 -0
  121. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/errors/uploadplaylist.py +0 -0
  122. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/internal/__init__.py +0 -0
  123. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/internal/globals.py +0 -0
  124. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/__init__.py +0 -0
  125. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/addplaylistcontents.py +0 -0
  126. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/applyupdates.py +0 -0
  127. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/cancelserveractivities.py +0 -0
  128. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/checkforupdates.py +0 -0
  129. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/clearplaylistcontents.py +0 -0
  130. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/createplaylist.py +0 -0
  131. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/deletelibrary.py +0 -0
  132. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/deleteplaylist.py +0 -0
  133. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/enablepapertrail.py +0 -0
  134. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_all_libraries.py +0 -0
  135. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_banner_image.py +0 -0
  136. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_library_details.py +0 -0
  137. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_media_providers.py +0 -0
  138. {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
  139. {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
  140. {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
  141. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_server_identity.py +0 -0
  142. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_server_resources.py +0 -0
  143. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_thumb_image.py +0 -0
  144. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/get_watch_list.py +0 -0
  145. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getavailableclients.py +0 -0
  146. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getbutlertasks.py +0 -0
  147. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getcompanionsdata.py +0 -0
  148. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getdevices.py +0 -0
  149. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getfilehash.py +0 -0
  150. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getgeodata.py +0 -0
  151. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getglobalhubs.py +0 -0
  152. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gethomedata.py +0 -0
  153. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getlibraryhubs.py +0 -0
  154. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getmetadatachildren.py +0 -0
  155. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getmyplexaccount.py +0 -0
  156. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getondeck.py +0 -0
  157. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getpin.py +0 -0
  158. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getplaylist.py +0 -0
  159. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getplaylists.py +0 -0
  160. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getresizedphoto.py +0 -0
  161. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getsearchresults.py +0 -0
  162. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getserveractivities.py +0 -0
  163. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getservercapabilities.py +0 -0
  164. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getserverlist.py +0 -0
  165. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getserverpreferences.py +0 -0
  166. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getsessionhistory.py +0 -0
  167. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getsessions.py +0 -0
  168. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getsourceconnectioninformation.py +0 -0
  169. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettimeline.py +0 -0
  170. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettokenbypinid.py +0 -0
  171. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettokendetails.py +0 -0
  172. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettranscodesessions.py +0 -0
  173. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/gettransienttoken.py +0 -0
  174. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getupdatestatus.py +0 -0
  175. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/getuserfriends.py +0 -0
  176. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/logline.py +0 -0
  177. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/logmultiline.py +0 -0
  178. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/markplayed.py +0 -0
  179. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/markunplayed.py +0 -0
  180. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/performsearch.py +0 -0
  181. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/performvoicesearch.py +0 -0
  182. {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
  183. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/startalltasks.py +0 -0
  184. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/starttask.py +0 -0
  185. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/startuniversaltranscode.py +0 -0
  186. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/stopalltasks.py +0 -0
  187. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/stoptask.py +0 -0
  188. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/stoptranscodesession.py +0 -0
  189. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/updateplaylist.py +0 -0
  190. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/updateplayprogress.py +0 -0
  191. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/models/operations/uploadplaylist.py +0 -0
  192. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/py.typed +0 -0
  193. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/sdk.py +0 -0
  194. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/types/__init__.py +0 -0
  195. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/types/basemodel.py +0 -0
  196. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/enums.py +0 -0
  197. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/eventstreaming.py +0 -0
  198. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/forms.py +0 -0
  199. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/headers.py +0 -0
  200. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/logger.py +0 -0
  201. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/metadata.py +0 -0
  202. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/queryparams.py +0 -0
  203. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/requestbodies.py +0 -0
  204. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/retries.py +0 -0
  205. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/security.py +0 -0
  206. {plex_api_client-0.18.1 → plex_api_client-0.19.1}/src/plex_api_client/utils/url.py +0 -0
  207. {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 | Content Type |
342
- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
343
- | errors.GetServerCapabilitiesBadRequest | 400 | application/json |
344
- | errors.GetServerCapabilitiesUnauthorized | 401 | application/json |
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
- ### Select Server by Index
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
- if res.object is not None:
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="{protocol}://{ip}:{port}",
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 | Scheme |
560
- | -------------- | -------------- | -------------- |
561
- | `access_token` | apiKey | API key |
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 | Content Type |
364
- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
365
- | errors.GetServerCapabilitiesBadRequest | 400 | application/json |
366
- | errors.GetServerCapabilitiesUnauthorized | 401 | application/json |
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
- ### Select Server by Index
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
- if res.object is not None:
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="{protocol}://{ip}:{port}",
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 | Scheme |
582
- | -------------- | -------------- | -------------- |
583
- | `access_token` | apiKey | API key |
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.18.1"
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.0"
24
+ pydantic = "~2.9.2"
25
25
  python-dateutil = "2.8.2"
26
26
  typing-inspect = "^0.9.0"
27
27
 
@@ -1,4 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
+ from ._version import __title__, __version__
3
4
  from .sdk import *
4
5
  from .sdkconfiguration import *
6
+
7
+
8
+ VERSION: str = __version__
@@ -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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
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, http_res.text, http_res
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
- http_res.text,
838
+ http_res_text,
823
839
  http_res,
824
840
  )