ecapi-sdk 3.7.9__tar.gz → 3.7.10__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.7.9
3
+ Version: 3.7.10
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ecapi-sdk"
7
- version = "3.7.9"
7
+ version = "3.7.10"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -725,6 +725,10 @@ class AdminPunishmentAPI(_BaseApi):
725
725
  """创建处罚"""
726
726
  return self._post(f"/admin/players/{quote(str(ecid), safe='')}/punishments", payload, **kwargs)
727
727
 
728
+ def get_report_punishment(self, ecid: str, **kwargs: Any) -> Any:
729
+ """获取玩家禁用举报状态"""
730
+ return self._get(f"/admin/players/{quote(str(ecid), safe='')}/report-punishment", None, **kwargs)
731
+
728
732
  def list(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
729
733
  """分页查询处罚列表"""
730
734
  return self._get(f"/admin/punishments", query, **kwargs)
@@ -697,7 +697,7 @@ class AuthAPILoginByOauth2BodyRequired(TypedDict):
697
697
  code: str
698
698
 
699
699
  class AuthAPILoginByOauth2Body(AuthAPILoginByOauth2BodyRequired, total=False):
700
- pass
700
+ redirectUri: str
701
701
 
702
702
  class AuthAPIRefreshTokenBodyRequired(TypedDict):
703
703
  refreshToken: str
@@ -1781,6 +1781,7 @@ class ServerRoomAPICreateBody(ServerRoomAPICreateBodyRequired, total=False):
1781
1781
  map: str
1782
1782
  name: str
1783
1783
  owner: str
1784
+ publicRoom: bool
1784
1785
  metadata: str
1785
1786
  ownerOnlyStart: bool
1786
1787
  allowCreative: bool
@@ -1993,6 +1994,7 @@ class AdminPlayerWalletAPI:
1993
1994
  class AdminPunishmentAPI:
1994
1995
  def clear_degree(self, ecid: str, **kwargs: Any) -> Any: ...
1995
1996
  def create(self, ecid: str, payload: AdminPunishmentAPICreateBody, **kwargs: Any) -> Any: ...
1997
+ def get_report_punishment(self, ecid: str, **kwargs: Any) -> Any: ...
1996
1998
  def list(self, query: Optional[AdminPunishmentAPIListQuery] = ..., **kwargs: Any) -> Any: ...
1997
1999
  def list_prism_device_ban_logs(self, query: Optional[AdminPunishmentAPIListPrismDeviceBanLogsQuery] = ..., **kwargs: Any) -> Any: ...
1998
2000
  def remove(self, ecid: str, type: str, query: Optional[AdminPunishmentAPIRemoveQuery] = ..., **kwargs: Any) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.7.9
3
+ Version: 3.7.10
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes