ecapi-sdk 3.3.14__tar.gz → 3.3.15__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.14
3
+ Version: 3.3.15
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.14"
7
+ version = "3.3.15"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -309,6 +309,10 @@ class _BaseApi:
309
309
  return self._http.request("DELETE", path, query=query, **request_kwargs, **query_kwargs)
310
310
 
311
311
  class PIT2API(_BaseApi):
312
+ def build_item(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
313
+ """生成或解析 PIT2 物品"""
314
+ return self._post(f"/pit2/item-builds", payload, **kwargs)
315
+
312
316
  def get_draws(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
313
317
  """分页查询全服 PIT2 抽奖会话"""
314
318
  return self._get(f"/pit2/gacha-draws", query, **kwargs)
@@ -38,6 +38,12 @@ class PIT2APIGetSeasonExchangesQuery(TypedDict, total=False):
38
38
  seasonId: QueryValue
39
39
  itemKey: QueryValue
40
40
 
41
+ class PIT2APIBuildItemBodyRequired(TypedDict):
42
+ source: Mapping[str, Any]
43
+
44
+ class PIT2APIBuildItemBody(PIT2APIBuildItemBodyRequired, total=False):
45
+ pass
46
+
41
47
  class PIT2APIGetItemLocationsByUuidQuery(TypedDict, total=False):
42
48
  current: QueryValue
43
49
  pageSize: QueryValue
@@ -1043,6 +1049,7 @@ class ECAPIError(Exception):
1043
1049
  def __init__(self, message: str, status: int, payload: Any, url: str) -> None: ...
1044
1050
 
1045
1051
  class PIT2API:
1052
+ def build_item(self, payload: PIT2APIBuildItemBody, **kwargs: Any) -> Any: ...
1046
1053
  def get_draws(self, query: Optional[PIT2APIGetDrawsQuery] = ..., **kwargs: Any) -> Any: ...
1047
1054
  def get_ender_chest(self, xuid: str, query: Optional[PIT2APIGetEnderChestQuery] = ..., **kwargs: Any) -> Any: ...
1048
1055
  def get_event_queue(self, **kwargs: Any) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.3.14
3
+ Version: 3.3.15
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes