yaylib 1.5.3.dev1__tar.gz → 1.5.4__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 (26) hide show
  1. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/PKG-INFO +1 -1
  2. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/pyproject.toml +1 -1
  3. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/__init__.py +1 -1
  4. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/misc.py +4 -3
  5. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/errors.py +6 -0
  6. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/LICENSE +0 -0
  7. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/README.md +0 -0
  8. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/__init__.py +0 -0
  9. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/auth.py +0 -0
  10. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/call.py +0 -0
  11. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/chat.py +0 -0
  12. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/group.py +0 -0
  13. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/notification.py +0 -0
  14. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/post.py +0 -0
  15. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/review.py +0 -0
  16. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/thread.py +0 -0
  17. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/api/user.py +0 -0
  18. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/client.py +0 -0
  19. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/config.py +0 -0
  20. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/constants.py +0 -0
  21. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/device.py +0 -0
  22. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/models.py +0 -0
  23. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/responses.py +0 -0
  24. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/state.py +0 -0
  25. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/utils.py +0 -0
  26. {yaylib-1.5.3.dev1 → yaylib-1.5.4}/yaylib/ws.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: yaylib
3
- Version: 1.5.3.dev1
3
+ Version: 1.5.4
4
4
  Summary: 同世代と趣味の通話コミュニティ - Yay! (イェイ) で投稿やタイムラインの取得、リツイートやいいねの実行、フォローや投稿の検索など様々な機能をPythonプログラムから利用可能なAPIクライアントツールです。
5
5
  License: MIT
6
6
  Keywords: yay,yaylib,api,bot,tool,client,library,wrapper,ボット,ライブラリ,ツール
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "yaylib"
3
- version = "1.5.3.dev1"
3
+ version = "1.5.4"
4
4
  description = "同世代と趣味の通話コミュニティ - Yay! (イェイ) で投稿やタイムラインの取得、リツイートやいいねの実行、フォローや投稿の検索など様々な機能をPythonプログラムから利用可能なAPIクライアントツールです。"
5
5
  authors = ["ekkx <nikola.desuga@gmail.com>"]
6
6
  license = "MIT"
@@ -23,7 +23,7 @@ __copyright__ = "Copyright (c) 2023 ekkx"
23
23
  # 1.0.0rc1 Release Candidate
24
24
  # 1.0.0 Final Release
25
25
  # 1.0.0.post1 Post Release
26
- __version__ = "1.5.3.dev1"
26
+ __version__ = "1.5.4"
27
27
 
28
28
  from .client import Client
29
29
  from .constants import *
@@ -91,11 +91,12 @@ class MiscApi:
91
91
  Returns:
92
92
  Response:
93
93
  """
94
+ presigned_url_response = await self.get_email_verification_presigned_url(
95
+ email=email, locale=locale, intent=intent
96
+ )
94
97
  return await self.__client.request(
95
98
  "POST",
96
- self.get_email_verification_presigned_url(
97
- email=email, locale=locale, intent=intent
98
- ).url,
99
+ presigned_url_response.url,
99
100
  json={"locale": locale, "email": email},
100
101
  return_type=Response,
101
102
  )
@@ -373,6 +373,10 @@ class CreateSpecificGenderGroupRequiredGenderError(ClientError):
373
373
  """このサークルを作成するには性別の設定が必要です"""
374
374
 
375
375
 
376
+ class InvalidJWTError(ClientError):
377
+ """JWTが不正です"""
378
+
379
+
376
380
  class GroupRelatedExceededNumberOfRelatedGroupsError(ClientError):
377
381
  """サークルの追加上限に到達しました"""
378
382
 
@@ -759,6 +763,8 @@ async def raise_for_code(response: aiohttp.ClientResponse) -> None:
759
763
  raise OnlySpecificGenderCanJoinGroupError(err)
760
764
  case -378:
761
765
  raise CreateSpecificGenderGroupRequiredGenderError(err)
766
+ case -379:
767
+ raise InvalidJWTError(err)
762
768
  case -382:
763
769
  raise GroupRelatedExceededNumberOfRelatedGroupsError(err)
764
770
  case -383:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes