ecapi-sdk 3.3.2__tar.gz → 3.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.3.2
3
+ Version: 3.3.4
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.3.2"
7
+ version = "3.3.4"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -334,6 +334,10 @@ class PIT2API(_BaseApi):
334
334
  """修改 PIT2 背包位置"""
335
335
  return self._patch(f"/pit2/players/{quote(str(xuid), safe='')}/inventory", payload, **kwargs)
336
336
 
337
+ def update_player(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
338
+ """部分修改 PIT2 玩家资料"""
339
+ return self._patch(f"/pit2/players/{quote(str(xuid), safe='')}", payload, **kwargs)
340
+
337
341
  class ReplayAPI(_BaseApi):
338
342
  def cache_map_profiles(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
339
343
  """预热回放地图轮廓缓存"""
@@ -10,6 +10,12 @@ Headers = Dict[str, str]
10
10
  AuthCredentials = Dict[str, str]
11
11
  AuthProvider = Callable[[], Union[Optional[AuthCredentials], Awaitable[Optional[AuthCredentials]]]]
12
12
 
13
+ class PIT2APIUpdatePlayerBodyRequired(TypedDict):
14
+ updates: Sequence[Any]
15
+
16
+ class PIT2APIUpdatePlayerBody(PIT2APIUpdatePlayerBodyRequired, total=False):
17
+ pass
18
+
13
19
  class PIT2APIGetEnderChestQuery(TypedDict, total=False):
14
20
  current: QueryValue
15
21
  pageSize: QueryValue
@@ -973,6 +979,7 @@ class PIT2API:
973
979
  def send_mail(self, xuid: str, payload: PIT2APISendMailBody, **kwargs: Any) -> Any: ...
974
980
  def update_ender_chest(self, xuid: str, payload: PIT2APIUpdateEnderChestBody, **kwargs: Any) -> Any: ...
975
981
  def update_inventory(self, xuid: str, payload: PIT2APIUpdateInventoryBody, **kwargs: Any) -> Any: ...
982
+ def update_player(self, xuid: str, payload: PIT2APIUpdatePlayerBody, **kwargs: Any) -> Any: ...
976
983
 
977
984
  class ReplayAPI:
978
985
  def cache_map_profiles(self, payload: ReplayAPICacheMapProfilesBody, **kwargs: Any) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.3.2
3
+ Version: 3.3.4
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes