ecapi-sdk 3.4.3__tar.gz → 3.4.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.4.3
3
+ Version: 3.4.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.4.3"
7
+ version = "3.4.4"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -313,6 +313,10 @@ class PIT2API(_BaseApi):
313
313
  """生成或解析 PIT2 物品"""
314
314
  return self._post(f"/pit2/item-builds", payload, **kwargs)
315
315
 
316
+ def create_global_mail(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
317
+ """创建 PIT2 全服邮件活动"""
318
+ return self._post(f"/pit2/global-mails", payload, **kwargs)
319
+
316
320
  def get_draws(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
317
321
  """分页查询全服 PIT2 抽奖会话"""
318
322
  return self._get(f"/pit2/gacha-draws", query, **kwargs)
@@ -38,6 +38,23 @@ class PIT2APIGetSeasonExchangesQuery(TypedDict, total=False):
38
38
  seasonId: QueryValue
39
39
  itemKey: QueryValue
40
40
 
41
+ class PIT2APICreateGlobalMailBodyRequired(TypedDict):
42
+ requestId: str
43
+ title: str
44
+ content: str
45
+
46
+ class PIT2APICreateGlobalMailBody(PIT2APICreateGlobalMailBodyRequired, total=False):
47
+ startsAt: str
48
+ endsAt: str
49
+ coins: Union[int, float]
50
+ exp: Union[int, float]
51
+ renown: int
52
+ limitPermission: str
53
+ limitLevel: Union[int, float]
54
+ serializedInventory: str
55
+ items: Sequence[Any]
56
+ reason: str
57
+
41
58
  class PIT2APIBuildItemBodyRequired(TypedDict):
42
59
  source: Mapping[str, Any]
43
60
 
@@ -1114,6 +1131,7 @@ class ECAPIError(Exception):
1114
1131
 
1115
1132
  class PIT2API:
1116
1133
  def build_item(self, payload: PIT2APIBuildItemBody, **kwargs: Any) -> Any: ...
1134
+ def create_global_mail(self, payload: PIT2APICreateGlobalMailBody, **kwargs: Any) -> Any: ...
1117
1135
  def get_draws(self, query: Optional[PIT2APIGetDrawsQuery] = ..., **kwargs: Any) -> Any: ...
1118
1136
  def get_ender_chest(self, xuid: str, query: Optional[PIT2APIGetEnderChestQuery] = ..., **kwargs: Any) -> Any: ...
1119
1137
  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.4.3
3
+ Version: 3.4.4
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes