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.
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/PKG-INFO +1 -1
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/pyproject.toml +1 -1
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/src/ecapi_sdk/client.py +4 -0
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/src/ecapi_sdk/client.pyi +18 -0
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/README.md +0 -0
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/setup.cfg +0 -0
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.4.3 → ecapi_sdk-3.4.4}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -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: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|