satori-python 0.11.4__tar.gz → 0.11.5__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 (25) hide show
  1. {satori_python-0.11.4 → satori_python-0.11.5}/PKG-INFO +2 -2
  2. {satori_python-0.11.4 → satori_python-0.11.5}/pyproject.toml +5 -5
  3. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/__init__.py +1 -1
  4. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/client/account.pyi +2 -0
  5. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/client/session.py +12 -0
  6. {satori_python-0.11.4 → satori_python-0.11.5}/LICENSE +0 -0
  7. {satori_python-0.11.4 → satori_python-0.11.5}/README.md +0 -0
  8. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/client/__init__.py +0 -0
  9. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/client/account.py +0 -0
  10. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/client/network/__init__.py +0 -0
  11. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/client/network/base.py +0 -0
  12. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/client/network/webhook.py +0 -0
  13. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/client/network/websocket.py +0 -0
  14. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/config.py +0 -0
  15. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/const.py +0 -0
  16. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/element.py +0 -0
  17. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/event.py +0 -0
  18. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/exception.py +0 -0
  19. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/model.py +0 -0
  20. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/parser.py +0 -0
  21. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/server/__init__.py +0 -0
  22. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/server/adapter.py +0 -0
  23. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/server/conection.py +0 -0
  24. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/server/model.py +0 -0
  25. {satori_python-0.11.4 → satori_python-0.11.5}/src/satori/server/route.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python
3
- Version: 0.11.4
3
+ Version: 0.11.5
4
4
  Summary: Satori Protocol SDK for python
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -20,7 +20,7 @@ Requires-Python: >=3.9
20
20
  Requires-Dist: aiohttp>=3.9.3
21
21
  Requires-Dist: loguru>=0.7.2
22
22
  Requires-Dist: launart>=0.8.2
23
- Requires-Dist: typing-extensions>=4.10.0
23
+ Requires-Dist: typing-extensions>=4.7.0
24
24
  Requires-Dist: graia-amnesia>=0.9.0
25
25
  Requires-Dist: starlette>=0.37.2
26
26
  Requires-Dist: uvicorn[standard]>=0.28.0
@@ -9,7 +9,7 @@ dependencies = [
9
9
  "aiohttp>=3.9.3",
10
10
  "loguru>=0.7.2",
11
11
  "launart>=0.8.2",
12
- "typing-extensions>=4.10.0",
12
+ "typing-extensions>=4.7.0",
13
13
  "graia-amnesia>=0.9.0",
14
14
  "starlette>=0.37.2",
15
15
  "uvicorn[standard]>=0.28.0",
@@ -28,7 +28,7 @@ classifiers = [
28
28
  "Programming Language :: Python :: 3.12",
29
29
  "Operating System :: OS Independent",
30
30
  ]
31
- version = "0.11.4"
31
+ version = "0.11.5"
32
32
 
33
33
  [project.license]
34
34
  text = "MIT"
@@ -46,9 +46,9 @@ build-backend = "mina.backend"
46
46
  [tool.pdm.dev-dependencies]
47
47
  dev = [
48
48
  "isort>=5.13.2",
49
- "black>=24.2.0",
50
- "ruff>=0.3.2",
51
- "pre-commit>=3.6.2",
49
+ "black>=24.4.0",
50
+ "ruff>=0.4.1",
51
+ "pre-commit>=3.7.0",
52
52
  "fix-future-annotations>=0.5.0",
53
53
  "mina-build<0.6,>=0.5.1",
54
54
  "pdm-mina>=0.3.2",
@@ -39,4 +39,4 @@ from .model import MessageObject as MessageObject
39
39
  from .model import Role as Role
40
40
  from .model import User as User
41
41
 
42
- __version__ = "0.11.4"
42
+ __version__ = "0.11.5"
@@ -112,6 +112,7 @@ class Account:
112
112
  data: Channel,
113
113
  ) -> None: ...
114
114
  async def channel_delete(self, *, channel_id: str) -> None: ...
115
+ async def channel_mute(self, *, channel_id: str, duration: float = 0) -> None: ...
115
116
  async def user_channel_create(self, *, user_id: str, guild_id: str | None = None) -> Channel: ...
116
117
  async def guild_get(self, *, guild_id: str) -> Guild: ...
117
118
  async def guild_list(self, *, next_token: str | None = None) -> PageResult[Guild]: ...
@@ -121,6 +122,7 @@ class Account:
121
122
  ) -> PageResult[Member]: ...
122
123
  async def guild_member_get(self, *, guild_id: str, user_id: str) -> Member: ...
123
124
  async def guild_member_kick(self, *, guild_id: str, user_id: str, permanent: bool = False) -> None: ...
125
+ async def guild_member_mute(self, *, guild_id: str, user_id: str, duration: float = 0) -> None: ...
124
126
  async def guild_member_approve(self, *, request_id: str, approve: bool, comment: str) -> None: ...
125
127
  async def guild_member_role_set(self, *, guild_id: str, user_id: str, role_id: str) -> None: ...
126
128
  async def guild_member_role_unset(self, *, guild_id: str, user_id: str, role_id: str) -> None: ...
@@ -197,6 +197,12 @@ class Session:
197
197
  {"channel_id": channel_id},
198
198
  )
199
199
 
200
+ async def channel_mute(self, channel_id: str, duration: float = 0) -> None:
201
+ await self.call_api(
202
+ Api.CHANNEL_MUTE,
203
+ {"channel_id": channel_id, "duration": duration},
204
+ )
205
+
200
206
  async def user_channel_create(self, user_id: str, guild_id: str | None = None) -> Channel:
201
207
  data = {"user_id": user_id}
202
208
  if guild_id is not None:
@@ -247,6 +253,12 @@ class Session:
247
253
  {"guild_id": guild_id, "user_id": user_id, "permanent": permanent},
248
254
  )
249
255
 
256
+ async def guild_member_mute(self, guild_id: str, user_id: str, duration: float = 0) -> None:
257
+ await self.call_api(
258
+ Api.GUILD_MEMBER_MUTE,
259
+ {"guild_id": guild_id, "user_id": user_id, "duration": duration},
260
+ )
261
+
250
262
  async def guild_member_approve(self, request_id: str, approve: bool, comment: str) -> None:
251
263
  await self.call_api(
252
264
  Api.GUILD_MEMBER_APPROVE,
File without changes
File without changes