ecapi-sdk 3.3.14__tar.gz → 3.3.16__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.3.14 → ecapi_sdk-3.3.16}/PKG-INFO +1 -1
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/pyproject.toml +1 -1
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/src/ecapi_sdk/client.py +6 -2
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/src/ecapi_sdk/client.pyi +11 -1
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/README.md +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/setup.cfg +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.16}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -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)
|
|
@@ -1192,9 +1196,9 @@ class ServerSpamDetectorAPI(_BaseApi):
|
|
|
1192
1196
|
return self._patch(f"/spam-detector/config", payload, **kwargs)
|
|
1193
1197
|
|
|
1194
1198
|
class SystemAPI(_BaseApi):
|
|
1195
|
-
def get_app_manifest(self, **kwargs: Any) -> Any:
|
|
1199
|
+
def get_app_manifest(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1196
1200
|
"""获取控制台 JS 加密包 manifest"""
|
|
1197
|
-
return self._get(f"/app-manifest",
|
|
1201
|
+
return self._get(f"/app-manifest", query, **kwargs)
|
|
1198
1202
|
|
|
1199
1203
|
def get_health(self, **kwargs: Any) -> Any:
|
|
1200
1204
|
"""获取服务健康状态"""
|
|
@@ -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
|
|
@@ -1026,6 +1032,9 @@ class ServerSpamDetectorAPISetStateBodyRequired(TypedDict):
|
|
|
1026
1032
|
class ServerSpamDetectorAPISetStateBody(ServerSpamDetectorAPISetStateBodyRequired, total=False):
|
|
1027
1033
|
pass
|
|
1028
1034
|
|
|
1035
|
+
class SystemAPIGetAppManifestQuery(TypedDict, total=False):
|
|
1036
|
+
version: QueryValue
|
|
1037
|
+
|
|
1029
1038
|
class SystemAPIProbeDatabaseIndexesQueryRequired(TypedDict):
|
|
1030
1039
|
tables: QueryValue
|
|
1031
1040
|
|
|
@@ -1043,6 +1052,7 @@ class ECAPIError(Exception):
|
|
|
1043
1052
|
def __init__(self, message: str, status: int, payload: Any, url: str) -> None: ...
|
|
1044
1053
|
|
|
1045
1054
|
class PIT2API:
|
|
1055
|
+
def build_item(self, payload: PIT2APIBuildItemBody, **kwargs: Any) -> Any: ...
|
|
1046
1056
|
def get_draws(self, query: Optional[PIT2APIGetDrawsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1047
1057
|
def get_ender_chest(self, xuid: str, query: Optional[PIT2APIGetEnderChestQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1048
1058
|
def get_event_queue(self, **kwargs: Any) -> Any: ...
|
|
@@ -1364,7 +1374,7 @@ class ServerSpamDetectorAPI:
|
|
|
1364
1374
|
def update_config(self, payload: ServerSpamDetectorAPIUpdateConfigBody, **kwargs: Any) -> Any: ...
|
|
1365
1375
|
|
|
1366
1376
|
class SystemAPI:
|
|
1367
|
-
def get_app_manifest(self, **kwargs: Any) -> Any: ...
|
|
1377
|
+
def get_app_manifest(self, query: Optional[SystemAPIGetAppManifestQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1368
1378
|
def get_health(self, **kwargs: Any) -> Any: ...
|
|
1369
1379
|
def get_liveness(self, **kwargs: Any) -> Any: ...
|
|
1370
1380
|
def get_readiness(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
|