ecapi-sdk 3.3.3__tar.gz → 3.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.3.3
3
+ Version: 3.3.5
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.3"
7
+ version = "3.3.5"
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,9 +10,17 @@ 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
22
+ startTime: QueryValue
23
+ endTime: QueryValue
16
24
 
17
25
  class PIT2APIUpdateEnderChestBodyRequired(TypedDict):
18
26
  expectedRevision: str
@@ -56,6 +64,8 @@ class PIT2APIGetSeasonExchangesQuery(TypedDict, total=False):
56
64
  class PIT2APIGetInventoryQuery(TypedDict, total=False):
57
65
  current: QueryValue
58
66
  pageSize: QueryValue
67
+ startTime: QueryValue
68
+ endTime: QueryValue
59
69
 
60
70
  class PIT2APIUpdateInventoryBodyRequired(TypedDict):
61
71
  expectedRevision: str
@@ -973,6 +983,7 @@ class PIT2API:
973
983
  def send_mail(self, xuid: str, payload: PIT2APISendMailBody, **kwargs: Any) -> Any: ...
974
984
  def update_ender_chest(self, xuid: str, payload: PIT2APIUpdateEnderChestBody, **kwargs: Any) -> Any: ...
975
985
  def update_inventory(self, xuid: str, payload: PIT2APIUpdateInventoryBody, **kwargs: Any) -> Any: ...
986
+ def update_player(self, xuid: str, payload: PIT2APIUpdatePlayerBody, **kwargs: Any) -> Any: ...
976
987
 
977
988
  class ReplayAPI:
978
989
  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.3
3
+ Version: 3.3.5
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes