plex-api-client 0.17.0__tar.gz → 0.18.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.
Files changed (207) hide show
  1. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/PKG-INFO +47 -95
  2. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/README-PYPI.md +46 -94
  3. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/pyproject.toml +1 -1
  4. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/activities.py +20 -4
  5. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/authentication.py +46 -14
  6. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/butler.py +50 -10
  7. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/hubs.py +30 -6
  8. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/library.py +346 -30
  9. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/log.py +30 -6
  10. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/media.py +50 -10
  11. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/components/security.py +2 -2
  12. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/__init__.py +18 -0
  13. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/addplaylistcontents.py +2 -2
  14. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/applyupdates.py +2 -2
  15. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/cancelserveractivities.py +2 -2
  16. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/checkforupdates.py +2 -2
  17. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/clearplaylistcontents.py +2 -2
  18. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/createplaylist.py +2 -2
  19. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/deletelibrary.py +2 -2
  20. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/deleteplaylist.py +2 -2
  21. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/enablepapertrail.py +2 -2
  22. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_all_libraries.py +2 -2
  23. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_banner_image.py +2 -2
  24. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_library_details.py +2 -2
  25. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_library_items.py +2 -2
  26. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_media_providers.py +2 -2
  27. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_meta_data_by_rating_key.py +2 -2
  28. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_recently_added_library.py +2 -2
  29. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_refresh_library_metadata.py +2 -2
  30. plex_api_client-0.18.0/src/plex_api_client/models/errors/get_search_all_libraries.py +79 -0
  31. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_search_library.py +2 -2
  32. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_server_resources.py +2 -2
  33. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_thumb_image.py +2 -2
  34. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_watch_list.py +2 -2
  35. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getavailableclients.py +2 -2
  36. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getbandwidthstatistics.py +2 -2
  37. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getbutlertasks.py +2 -2
  38. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getcompanionsdata.py +2 -2
  39. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getdevices.py +2 -2
  40. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getfilehash.py +2 -2
  41. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getgeodata.py +2 -2
  42. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getglobalhubs.py +2 -2
  43. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/gethomedata.py +2 -2
  44. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getlibraryhubs.py +2 -2
  45. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getmetadatachildren.py +2 -2
  46. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getmyplexaccount.py +2 -2
  47. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getondeck.py +2 -2
  48. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getpin.py +2 -2
  49. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getplaylist.py +2 -2
  50. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getplaylistcontents.py +2 -2
  51. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getplaylists.py +2 -2
  52. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getresizedphoto.py +2 -2
  53. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getresourcesstatistics.py +2 -2
  54. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getsearchresults.py +2 -2
  55. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getserveractivities.py +2 -2
  56. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getservercapabilities.py +2 -2
  57. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getserverlist.py +2 -2
  58. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getserverpreferences.py +2 -2
  59. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getsessionhistory.py +2 -2
  60. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getsessions.py +2 -2
  61. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getsourceconnectioninformation.py +2 -2
  62. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getstatistics.py +2 -2
  63. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/gettimeline.py +2 -2
  64. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/gettokenbypinid.py +2 -2
  65. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/gettokendetails.py +2 -2
  66. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/gettopwatchedcontent.py +2 -2
  67. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/gettranscodesessions.py +2 -2
  68. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/gettransienttoken.py +2 -2
  69. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getupdatestatus.py +2 -2
  70. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/getuserfriends.py +2 -2
  71. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/logline.py +2 -2
  72. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/logmultiline.py +2 -2
  73. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/markplayed.py +2 -2
  74. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/markunplayed.py +2 -2
  75. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/performsearch.py +2 -2
  76. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/performvoicesearch.py +2 -2
  77. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/post_users_sign_in_data.py +2 -2
  78. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/startalltasks.py +2 -2
  79. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/starttask.py +2 -2
  80. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/startuniversaltranscode.py +2 -2
  81. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/stopalltasks.py +2 -2
  82. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/stoptask.py +2 -2
  83. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/stoptranscodesession.py +2 -2
  84. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/updateplaylist.py +2 -2
  85. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/updateplayprogress.py +2 -2
  86. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/uploadplaylist.py +2 -2
  87. plex_api_client-0.18.0/src/plex_api_client/models/internal/globals.py +58 -0
  88. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/__init__.py +114 -10
  89. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/addplaylistcontents.py +2 -2
  90. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/applyupdates.py +2 -2
  91. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/cancelserveractivities.py +1 -2
  92. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/checkforupdates.py +2 -2
  93. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/clearplaylistcontents.py +1 -2
  94. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/createplaylist.py +2 -2
  95. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/deletelibrary.py +1 -2
  96. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/deleteplaylist.py +1 -2
  97. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/enablepapertrail.py +1 -1
  98. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_all_libraries.py +6 -6
  99. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_banner_image.py +11 -6
  100. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_library_details.py +2 -2
  101. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_library_items.py +58 -39
  102. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_media_providers.py +6 -6
  103. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_meta_data_by_rating_key.py +2 -2
  104. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_recently_added.py +51 -32
  105. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_recently_added_library.py +2 -2
  106. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_refresh_library_metadata.py +2 -2
  107. plex_api_client-0.18.0/src/plex_api_client/models/operations/get_search_all_libraries.py +1064 -0
  108. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_search_library.py +2 -2
  109. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_server_identity.py +2 -2
  110. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_server_resources.py +9 -25
  111. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_thumb_image.py +11 -6
  112. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/get_watch_list.py +11 -6
  113. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getavailableclients.py +2 -2
  114. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getbandwidthstatistics.py +2 -2
  115. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getbutlertasks.py +2 -2
  116. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getcompanionsdata.py +2 -2
  117. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getdevices.py +2 -2
  118. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getfilehash.py +2 -2
  119. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getgeodata.py +2 -2
  120. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getglobalhubs.py +2 -2
  121. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/gethomedata.py +2 -2
  122. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getlibraryhubs.py +2 -2
  123. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getmetadatachildren.py +2 -2
  124. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getmyplexaccount.py +2 -2
  125. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getondeck.py +2 -2
  126. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getpin.py +41 -41
  127. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getplaylist.py +2 -2
  128. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getplaylistcontents.py +2 -2
  129. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getplaylists.py +2 -2
  130. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getresizedphoto.py +1 -2
  131. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getresourcesstatistics.py +2 -2
  132. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getsearchresults.py +2 -2
  133. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getserveractivities.py +2 -2
  134. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getservercapabilities.py +2 -2
  135. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getserverlist.py +2 -2
  136. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getserverpreferences.py +2 -2
  137. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getsessionhistory.py +2 -2
  138. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getsessions.py +2 -2
  139. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getsourceconnectioninformation.py +1 -2
  140. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getstatistics.py +2 -2
  141. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/gettimeline.py +1 -2
  142. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/gettokenbypinid.py +41 -41
  143. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/gettokendetails.py +6 -213
  144. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/gettopwatchedcontent.py +2 -2
  145. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/gettranscodesessions.py +2 -2
  146. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/gettransienttoken.py +1 -2
  147. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getupdatestatus.py +2 -2
  148. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/getuserfriends.py +2 -2
  149. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/logline.py +1 -2
  150. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/logmultiline.py +1 -1
  151. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/markplayed.py +1 -2
  152. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/markunplayed.py +1 -2
  153. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/performsearch.py +2 -2
  154. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/performvoicesearch.py +2 -2
  155. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/post_users_sign_in_data.py +45 -263
  156. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/startalltasks.py +1 -1
  157. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/starttask.py +1 -2
  158. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/startuniversaltranscode.py +2 -2
  159. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/stopalltasks.py +1 -1
  160. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/stoptask.py +1 -2
  161. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/stoptranscodesession.py +1 -2
  162. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/updateplaylist.py +2 -2
  163. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/updateplayprogress.py +1 -2
  164. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/operations/uploadplaylist.py +1 -2
  165. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/playlists.py +90 -18
  166. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/plex.py +82 -26
  167. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/sdk.py +7 -7
  168. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/sdkconfiguration.py +3 -3
  169. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/search.py +30 -6
  170. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/server.py +92 -20
  171. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/sessions.py +40 -8
  172. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/statistics.py +30 -6
  173. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/updater.py +30 -6
  174. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/__init__.py +2 -0
  175. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/serializers.py +13 -0
  176. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/video.py +20 -4
  177. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/watchlist.py +10 -2
  178. plex_api_client-0.17.0/src/plex_api_client/models/internal/globals.py +0 -58
  179. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/LICENSE.md +0 -0
  180. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/py.typed +0 -0
  181. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/__init__.py +0 -0
  182. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/_hooks/__init__.py +0 -0
  183. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/_hooks/registration.py +0 -0
  184. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/_hooks/sdkhooks.py +0 -0
  185. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/_hooks/types.py +0 -0
  186. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/basesdk.py +0 -0
  187. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/httpclient.py +0 -0
  188. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/components/__init__.py +0 -0
  189. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/get_server_identity.py +0 -0
  190. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/errors/sdkerror.py +0 -0
  191. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/models/internal/__init__.py +0 -0
  192. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/py.typed +0 -0
  193. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/types/__init__.py +0 -0
  194. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/types/basemodel.py +0 -0
  195. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/annotations.py +0 -0
  196. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/enums.py +0 -0
  197. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/eventstreaming.py +0 -0
  198. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/forms.py +0 -0
  199. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/headers.py +0 -0
  200. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/logger.py +0 -0
  201. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/metadata.py +0 -0
  202. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/queryparams.py +0 -0
  203. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/requestbodies.py +0 -0
  204. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/retries.py +0 -0
  205. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/security.py +0 -0
  206. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/url.py +0 -0
  207. {plex_api_client-0.17.0 → plex_api_client-0.18.0}/src/plex_api_client/utils/values.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plex-api-client
3
- Version: 0.17.0
3
+ Version: 0.18.0
4
4
  Summary: Python Client SDK Generated by Speakeasy
5
5
  Home-page: https://github.com/LukeHagar/plexpy.git
6
6
  Author: Speakeasy
@@ -67,7 +67,6 @@ The following SDKs are generated from the OpenAPI Specification. They are automa
67
67
  * [IDE Support](https://github.com/LukeHagar/plexpy/blob/master/#ide-support)
68
68
  * [SDK Example Usage](https://github.com/LukeHagar/plexpy/blob/master/#sdk-example-usage)
69
69
  * [Available Resources and Operations](https://github.com/LukeHagar/plexpy/blob/master/#available-resources-and-operations)
70
- * [Global Parameters](https://github.com/LukeHagar/plexpy/blob/master/#global-parameters)
71
70
  * [Retries](https://github.com/LukeHagar/plexpy/blob/master/#retries)
72
71
  * [Error Handling](https://github.com/LukeHagar/plexpy/blob/master/#error-handling)
73
72
  * [Server Selection](https://github.com/LukeHagar/plexpy/blob/master/#server-selection)
@@ -119,11 +118,11 @@ from plex_api_client import PlexAPI
119
118
 
120
119
  s = PlexAPI(
121
120
  access_token="<YOUR_API_KEY_HERE>",
122
- client_id="gcgzw5rz2xovp84b4vha3a40",
123
- client_name="Plex Web",
124
- client_version="4.133.0",
125
- client_platform="Chrome",
126
- device_name="Linux",
121
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
122
+ client_name="Plex for Roku",
123
+ client_version="2.4.1",
124
+ platform="Roku",
125
+ device_nickname="Roku 3",
127
126
  )
128
127
 
129
128
  res = s.server.get_server_capabilities()
@@ -144,11 +143,11 @@ from plex_api_client import PlexAPI
144
143
  async def main():
145
144
  s = PlexAPI(
146
145
  access_token="<YOUR_API_KEY_HERE>",
147
- client_id="gcgzw5rz2xovp84b4vha3a40",
148
- client_name="Plex Web",
149
- client_version="4.133.0",
150
- client_platform="Chrome",
151
- device_name="Linux",
146
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
147
+ client_name="Plex for Roku",
148
+ client_version="2.4.1",
149
+ platform="Roku",
150
+ device_nickname="Roku 3",
152
151
  )
153
152
  res = await s.server.get_server_capabilities_async()
154
153
  if res.object is not None:
@@ -201,6 +200,7 @@ asyncio.run(main())
201
200
  * [get_library_items](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_library_items) - Get Library Items
202
201
  * [get_refresh_library_metadata](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_refresh_library_metadata) - Refresh Metadata Of The Library
203
202
  * [get_search_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_search_library) - Search Library
203
+ * [get_search_all_libraries](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_search_all_libraries) - Search All Libraries
204
204
  * [get_meta_data_by_rating_key](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_meta_data_by_rating_key) - Get Metadata by RatingKey
205
205
  * [get_metadata_children](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_metadata_children) - Get Items Children
206
206
  * [get_top_watched_content](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_top_watched_content) - Get Top Watched Content
@@ -304,11 +304,11 @@ from plex_api_client import PlexAPI
304
304
 
305
305
  s = PlexAPI(
306
306
  access_token="<YOUR_API_KEY_HERE>",
307
- client_id="gcgzw5rz2xovp84b4vha3a40",
308
- client_name="Plex Web",
309
- client_version="4.133.0",
310
- client_platform="Chrome",
311
- device_name="Linux",
307
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
308
+ client_name="Plex for Roku",
309
+ client_version="2.4.1",
310
+ platform="Roku",
311
+ device_nickname="Roku 3",
312
312
  )
313
313
 
314
314
  res = s.server.get_server_capabilities(,
@@ -328,11 +328,11 @@ from plex_api_client import PlexAPI
328
328
  s = PlexAPI(
329
329
  retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
330
330
  access_token="<YOUR_API_KEY_HERE>",
331
- client_id="gcgzw5rz2xovp84b4vha3a40",
332
- client_name="Plex Web",
333
- client_version="4.133.0",
334
- client_platform="Chrome",
335
- device_name="Linux",
331
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
332
+ client_name="Plex for Roku",
333
+ client_version="2.4.1",
334
+ platform="Roku",
335
+ device_nickname="Roku 3",
336
336
  )
337
337
 
338
338
  res = s.server.get_server_capabilities()
@@ -374,11 +374,11 @@ from plex_api_client.models import errors
374
374
 
375
375
  s = PlexAPI(
376
376
  access_token="<YOUR_API_KEY_HERE>",
377
- client_id="gcgzw5rz2xovp84b4vha3a40",
378
- client_name="Plex Web",
379
- client_version="4.133.0",
380
- client_platform="Chrome",
381
- device_name="Linux",
377
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
378
+ client_name="Plex for Roku",
379
+ client_version="2.4.1",
380
+ platform="Roku",
381
+ device_nickname="Roku 3",
382
382
  )
383
383
 
384
384
  res = None
@@ -420,11 +420,11 @@ from plex_api_client import PlexAPI
420
420
  s = PlexAPI(
421
421
  server_idx=0,
422
422
  access_token="<YOUR_API_KEY_HERE>",
423
- client_id="gcgzw5rz2xovp84b4vha3a40",
424
- client_name="Plex Web",
425
- client_version="4.133.0",
426
- client_platform="Chrome",
427
- device_name="Linux",
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
428
  )
429
429
 
430
430
  res = s.server.get_server_capabilities()
@@ -451,11 +451,11 @@ from plex_api_client import PlexAPI
451
451
  s = PlexAPI(
452
452
  server_url="{protocol}://{ip}:{port}",
453
453
  access_token="<YOUR_API_KEY_HERE>",
454
- client_id="gcgzw5rz2xovp84b4vha3a40",
455
- client_name="Plex Web",
456
- client_version="4.133.0",
457
- client_platform="Chrome",
458
- device_name="Linux",
454
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
455
+ client_name="Plex for Roku",
456
+ client_version="2.4.1",
457
+ platform="Roku",
458
+ device_nickname="Roku 3",
459
459
  )
460
460
 
461
461
  res = s.server.get_server_capabilities()
@@ -474,11 +474,11 @@ from plex_api_client import PlexAPI
474
474
 
475
475
  s = PlexAPI(
476
476
  access_token="<YOUR_API_KEY_HERE>",
477
- client_id="gcgzw5rz2xovp84b4vha3a40",
478
- client_name="Plex Web",
479
- client_version="4.133.0",
480
- client_platform="Chrome",
481
- device_name="Linux",
477
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
478
+ client_name="Plex for Roku",
479
+ client_version="2.4.1",
480
+ platform="Roku",
481
+ device_nickname="Roku 3",
482
482
  )
483
483
 
484
484
  res = s.plex.get_companions_data(server_url="https://plex.tv/api/v2")
@@ -588,11 +588,11 @@ from plex_api_client import PlexAPI
588
588
 
589
589
  s = PlexAPI(
590
590
  access_token="<YOUR_API_KEY_HERE>",
591
- client_id="gcgzw5rz2xovp84b4vha3a40",
592
- client_name="Plex Web",
593
- client_version="4.133.0",
594
- client_platform="Chrome",
595
- device_name="Linux",
591
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
592
+ client_name="Plex for Roku",
593
+ client_version="2.4.1",
594
+ platform="Roku",
595
+ device_nickname="Roku 3",
596
596
  )
597
597
 
598
598
  res = s.server.get_server_capabilities()
@@ -604,54 +604,6 @@ if res.object is not None:
604
604
  ```
605
605
  <!-- End Authentication [security] -->
606
606
 
607
- <!-- Start Global Parameters [global-parameters] -->
608
- ## Global Parameters
609
-
610
- 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.
611
-
612
- 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_server_resources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
613
-
614
-
615
- ### Available Globals
616
-
617
- The following global parameters are available.
618
-
619
- | Name | Type | Required | Description |
620
- | ---- | ---- |:--------:| ----------- |
621
- | client_id | str | | The unique identifier for the client application
622
- This is used to track the client application and its usage
623
- (UUID, serial number, or other number unique per device)
624
- |
625
- | client_name | str | | The client_name parameter. |
626
- | client_version | str | | The client_version parameter. |
627
- | client_platform | str | | The client_platform parameter. |
628
- | device_name | str | | The device_name parameter. |
629
-
630
-
631
- ### Example
632
-
633
- ```python
634
- from plex_api_client import PlexAPI
635
- from plex_api_client.models import operations
636
-
637
- s = PlexAPI(
638
- access_token="<YOUR_API_KEY_HERE>",
639
- client_id="gcgzw5rz2xovp84b4vha3a40",
640
- client_name="Plex Web",
641
- client_version="4.133.0",
642
- client_platform="Chrome",
643
- device_name="Linux",
644
- )
645
-
646
- res = s.plex.get_server_resources(include_https=operations.IncludeHTTPS.ENABLE, include_relay=operations.IncludeRelay.ENABLE, include_i_pv6=operations.IncludeIPv6.ENABLE, client_id="gcgzw5rz2xovp84b4vha3a40")
647
-
648
- if res.plex_devices is not None:
649
- # handle response
650
- pass
651
-
652
- ```
653
- <!-- End Global Parameters [global-parameters] -->
654
-
655
607
  <!-- Start Debugging [debug] -->
656
608
  ## Debugging
657
609
 
@@ -45,7 +45,6 @@ The following SDKs are generated from the OpenAPI Specification. They are automa
45
45
  * [IDE Support](https://github.com/LukeHagar/plexpy/blob/master/#ide-support)
46
46
  * [SDK Example Usage](https://github.com/LukeHagar/plexpy/blob/master/#sdk-example-usage)
47
47
  * [Available Resources and Operations](https://github.com/LukeHagar/plexpy/blob/master/#available-resources-and-operations)
48
- * [Global Parameters](https://github.com/LukeHagar/plexpy/blob/master/#global-parameters)
49
48
  * [Retries](https://github.com/LukeHagar/plexpy/blob/master/#retries)
50
49
  * [Error Handling](https://github.com/LukeHagar/plexpy/blob/master/#error-handling)
51
50
  * [Server Selection](https://github.com/LukeHagar/plexpy/blob/master/#server-selection)
@@ -97,11 +96,11 @@ from plex_api_client import PlexAPI
97
96
 
98
97
  s = PlexAPI(
99
98
  access_token="<YOUR_API_KEY_HERE>",
100
- client_id="gcgzw5rz2xovp84b4vha3a40",
101
- client_name="Plex Web",
102
- client_version="4.133.0",
103
- client_platform="Chrome",
104
- device_name="Linux",
99
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
100
+ client_name="Plex for Roku",
101
+ client_version="2.4.1",
102
+ platform="Roku",
103
+ device_nickname="Roku 3",
105
104
  )
106
105
 
107
106
  res = s.server.get_server_capabilities()
@@ -122,11 +121,11 @@ from plex_api_client import PlexAPI
122
121
  async def main():
123
122
  s = PlexAPI(
124
123
  access_token="<YOUR_API_KEY_HERE>",
125
- client_id="gcgzw5rz2xovp84b4vha3a40",
126
- client_name="Plex Web",
127
- client_version="4.133.0",
128
- client_platform="Chrome",
129
- device_name="Linux",
124
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
125
+ client_name="Plex for Roku",
126
+ client_version="2.4.1",
127
+ platform="Roku",
128
+ device_nickname="Roku 3",
130
129
  )
131
130
  res = await s.server.get_server_capabilities_async()
132
131
  if res.object is not None:
@@ -179,6 +178,7 @@ asyncio.run(main())
179
178
  * [get_library_items](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_library_items) - Get Library Items
180
179
  * [get_refresh_library_metadata](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_refresh_library_metadata) - Refresh Metadata Of The Library
181
180
  * [get_search_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_search_library) - Search Library
181
+ * [get_search_all_libraries](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_search_all_libraries) - Search All Libraries
182
182
  * [get_meta_data_by_rating_key](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_meta_data_by_rating_key) - Get Metadata by RatingKey
183
183
  * [get_metadata_children](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_metadata_children) - Get Items Children
184
184
  * [get_top_watched_content](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_top_watched_content) - Get Top Watched Content
@@ -282,11 +282,11 @@ from plex_api_client import PlexAPI
282
282
 
283
283
  s = PlexAPI(
284
284
  access_token="<YOUR_API_KEY_HERE>",
285
- client_id="gcgzw5rz2xovp84b4vha3a40",
286
- client_name="Plex Web",
287
- client_version="4.133.0",
288
- client_platform="Chrome",
289
- device_name="Linux",
285
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
286
+ client_name="Plex for Roku",
287
+ client_version="2.4.1",
288
+ platform="Roku",
289
+ device_nickname="Roku 3",
290
290
  )
291
291
 
292
292
  res = s.server.get_server_capabilities(,
@@ -306,11 +306,11 @@ from plex_api_client import PlexAPI
306
306
  s = PlexAPI(
307
307
  retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
308
308
  access_token="<YOUR_API_KEY_HERE>",
309
- client_id="gcgzw5rz2xovp84b4vha3a40",
310
- client_name="Plex Web",
311
- client_version="4.133.0",
312
- client_platform="Chrome",
313
- device_name="Linux",
309
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
310
+ client_name="Plex for Roku",
311
+ client_version="2.4.1",
312
+ platform="Roku",
313
+ device_nickname="Roku 3",
314
314
  )
315
315
 
316
316
  res = s.server.get_server_capabilities()
@@ -352,11 +352,11 @@ from plex_api_client.models import errors
352
352
 
353
353
  s = PlexAPI(
354
354
  access_token="<YOUR_API_KEY_HERE>",
355
- client_id="gcgzw5rz2xovp84b4vha3a40",
356
- client_name="Plex Web",
357
- client_version="4.133.0",
358
- client_platform="Chrome",
359
- device_name="Linux",
355
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
356
+ client_name="Plex for Roku",
357
+ client_version="2.4.1",
358
+ platform="Roku",
359
+ device_nickname="Roku 3",
360
360
  )
361
361
 
362
362
  res = None
@@ -398,11 +398,11 @@ from plex_api_client import PlexAPI
398
398
  s = PlexAPI(
399
399
  server_idx=0,
400
400
  access_token="<YOUR_API_KEY_HERE>",
401
- client_id="gcgzw5rz2xovp84b4vha3a40",
402
- client_name="Plex Web",
403
- client_version="4.133.0",
404
- client_platform="Chrome",
405
- device_name="Linux",
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
406
  )
407
407
 
408
408
  res = s.server.get_server_capabilities()
@@ -429,11 +429,11 @@ from plex_api_client import PlexAPI
429
429
  s = PlexAPI(
430
430
  server_url="{protocol}://{ip}:{port}",
431
431
  access_token="<YOUR_API_KEY_HERE>",
432
- client_id="gcgzw5rz2xovp84b4vha3a40",
433
- client_name="Plex Web",
434
- client_version="4.133.0",
435
- client_platform="Chrome",
436
- device_name="Linux",
432
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
433
+ client_name="Plex for Roku",
434
+ client_version="2.4.1",
435
+ platform="Roku",
436
+ device_nickname="Roku 3",
437
437
  )
438
438
 
439
439
  res = s.server.get_server_capabilities()
@@ -452,11 +452,11 @@ from plex_api_client import PlexAPI
452
452
 
453
453
  s = PlexAPI(
454
454
  access_token="<YOUR_API_KEY_HERE>",
455
- client_id="gcgzw5rz2xovp84b4vha3a40",
456
- client_name="Plex Web",
457
- client_version="4.133.0",
458
- client_platform="Chrome",
459
- device_name="Linux",
455
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
456
+ client_name="Plex for Roku",
457
+ client_version="2.4.1",
458
+ platform="Roku",
459
+ device_nickname="Roku 3",
460
460
  )
461
461
 
462
462
  res = s.plex.get_companions_data(server_url="https://plex.tv/api/v2")
@@ -566,11 +566,11 @@ from plex_api_client import PlexAPI
566
566
 
567
567
  s = PlexAPI(
568
568
  access_token="<YOUR_API_KEY_HERE>",
569
- client_id="gcgzw5rz2xovp84b4vha3a40",
570
- client_name="Plex Web",
571
- client_version="4.133.0",
572
- client_platform="Chrome",
573
- device_name="Linux",
569
+ client_id="3381b62b-9ab7-4e37-827b-203e9809eb58",
570
+ client_name="Plex for Roku",
571
+ client_version="2.4.1",
572
+ platform="Roku",
573
+ device_nickname="Roku 3",
574
574
  )
575
575
 
576
576
  res = s.server.get_server_capabilities()
@@ -582,54 +582,6 @@ if res.object is not None:
582
582
  ```
583
583
  <!-- End Authentication [security] -->
584
584
 
585
- <!-- Start Global Parameters [global-parameters] -->
586
- ## Global Parameters
587
-
588
- 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.
589
-
590
- 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_server_resources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
591
-
592
-
593
- ### Available Globals
594
-
595
- The following global parameters are available.
596
-
597
- | Name | Type | Required | Description |
598
- | ---- | ---- |:--------:| ----------- |
599
- | client_id | str | | The unique identifier for the client application
600
- This is used to track the client application and its usage
601
- (UUID, serial number, or other number unique per device)
602
- |
603
- | client_name | str | | The client_name parameter. |
604
- | client_version | str | | The client_version parameter. |
605
- | client_platform | str | | The client_platform parameter. |
606
- | device_name | str | | The device_name parameter. |
607
-
608
-
609
- ### Example
610
-
611
- ```python
612
- from plex_api_client import PlexAPI
613
- from plex_api_client.models import operations
614
-
615
- s = PlexAPI(
616
- access_token="<YOUR_API_KEY_HERE>",
617
- client_id="gcgzw5rz2xovp84b4vha3a40",
618
- client_name="Plex Web",
619
- client_version="4.133.0",
620
- client_platform="Chrome",
621
- device_name="Linux",
622
- )
623
-
624
- res = s.plex.get_server_resources(include_https=operations.IncludeHTTPS.ENABLE, include_relay=operations.IncludeRelay.ENABLE, include_i_pv6=operations.IncludeIPv6.ENABLE, client_id="gcgzw5rz2xovp84b4vha3a40")
625
-
626
- if res.plex_devices is not None:
627
- # handle response
628
- pass
629
-
630
- ```
631
- <!-- End Global Parameters [global-parameters] -->
632
-
633
585
  <!-- Start Debugging [debug] -->
634
586
  ## Debugging
635
587
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "plex-api-client"
3
- version = "0.17.0"
3
+ version = "0.18.0"
4
4
  description = "Python Client SDK Generated by Speakeasy"
5
5
  authors = ["Speakeasy",]
6
6
  readme = "README-PYPI.md"
@@ -59,10 +59,14 @@ class Activities(BaseSDK):
59
59
  if retries == UNSET:
60
60
  if self.sdk_configuration.retry_config is not UNSET:
61
61
  retries = self.sdk_configuration.retry_config
62
+ else:
63
+ retries = utils.RetryConfig(
64
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
65
+ )
62
66
 
63
67
  retry_config = None
64
68
  if isinstance(retries, utils.RetryConfig):
65
- retry_config = (retries, ["429", "500", "502", "503", "504"])
69
+ retry_config = (retries, ["5XX"])
66
70
 
67
71
  http_res = self.do_request(
68
72
  hook_ctx=HookContext(
@@ -150,10 +154,14 @@ class Activities(BaseSDK):
150
154
  if retries == UNSET:
151
155
  if self.sdk_configuration.retry_config is not UNSET:
152
156
  retries = self.sdk_configuration.retry_config
157
+ else:
158
+ retries = utils.RetryConfig(
159
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
160
+ )
153
161
 
154
162
  retry_config = None
155
163
  if isinstance(retries, utils.RetryConfig):
156
- retry_config = (retries, ["429", "500", "502", "503", "504"])
164
+ retry_config = (retries, ["5XX"])
157
165
 
158
166
  http_res = await self.do_request_async(
159
167
  hook_ctx=HookContext(
@@ -248,10 +256,14 @@ class Activities(BaseSDK):
248
256
  if retries == UNSET:
249
257
  if self.sdk_configuration.retry_config is not UNSET:
250
258
  retries = self.sdk_configuration.retry_config
259
+ else:
260
+ retries = utils.RetryConfig(
261
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
262
+ )
251
263
 
252
264
  retry_config = None
253
265
  if isinstance(retries, utils.RetryConfig):
254
- retry_config = (retries, ["429", "500", "502", "503", "504"])
266
+ retry_config = (retries, ["5XX"])
255
267
 
256
268
  http_res = self.do_request(
257
269
  hook_ctx=HookContext(
@@ -343,10 +355,14 @@ class Activities(BaseSDK):
343
355
  if retries == UNSET:
344
356
  if self.sdk_configuration.retry_config is not UNSET:
345
357
  retries = self.sdk_configuration.retry_config
358
+ else:
359
+ retries = utils.RetryConfig(
360
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
361
+ )
346
362
 
347
363
  retry_config = None
348
364
  if isinstance(retries, utils.RetryConfig):
349
- retry_config = (retries, ["429", "500", "502", "503", "504"])
365
+ retry_config = (retries, ["5XX"])
350
366
 
351
367
  http_res = await self.do_request_async(
352
368
  hook_ctx=HookContext(