ecapi-sdk 3.3.15__tar.gz → 3.3.17__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.15 → ecapi_sdk-3.3.17}/PKG-INFO +1 -1
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/pyproject.toml +1 -1
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/src/ecapi_sdk/client.py +18 -2
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/src/ecapi_sdk/client.pyi +20 -1
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/README.md +0 -0
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/setup.cfg +0 -0
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.3.15 → ecapi_sdk-3.3.17}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -325,6 +325,14 @@ class PIT2API(_BaseApi):
|
|
|
325
325
|
"""查询 PIT2 事件队列"""
|
|
326
326
|
return self._get(f"/pit2/event-queue", None, **kwargs)
|
|
327
327
|
|
|
328
|
+
def get_gacha_account(self, xuid: str, **kwargs: Any) -> Any:
|
|
329
|
+
"""查询 PIT2 玩家抽奖账号"""
|
|
330
|
+
return self._get(f"/pit2/players/{quote(str(xuid), safe='')}/gacha-account", None, **kwargs)
|
|
331
|
+
|
|
332
|
+
def get_gacha_admin_logs(self, xuid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
333
|
+
"""分页查询 PIT2 玩家抽奖账号发放历史"""
|
|
334
|
+
return self._get(f"/pit2/players/{quote(str(xuid), safe='')}/gacha-admin-logs", query, **kwargs)
|
|
335
|
+
|
|
328
336
|
def get_inventory(self, xuid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
329
337
|
"""查询 PIT2 背包与备份"""
|
|
330
338
|
return self._get(f"/pit2/players/{quote(str(xuid), safe='')}/inventory", query, **kwargs)
|
|
@@ -385,6 +393,10 @@ class PIT2API(_BaseApi):
|
|
|
385
393
|
"""修改 PIT2 末影箱位置"""
|
|
386
394
|
return self._patch(f"/pit2/players/{quote(str(xuid), safe='')}/ender-chest", payload, **kwargs)
|
|
387
395
|
|
|
396
|
+
def update_gacha_account(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
397
|
+
"""批量设置 PIT2 抽奖账号数值字段"""
|
|
398
|
+
return self._patch(f"/pit2/players/{quote(str(xuid), safe='')}/gacha-account", payload, **kwargs)
|
|
399
|
+
|
|
388
400
|
def update_inventory(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
389
401
|
"""修改 PIT2 背包位置"""
|
|
390
402
|
return self._patch(f"/pit2/players/{quote(str(xuid), safe='')}/inventory", payload, **kwargs)
|
|
@@ -673,6 +685,10 @@ class AuthAPI(_BaseApi):
|
|
|
673
685
|
return self._post(f"/auth/refresh", payload, **kwargs)
|
|
674
686
|
|
|
675
687
|
class GameLogAPI(_BaseApi):
|
|
688
|
+
def get_bedwars_weekly_report(self, ecid: str, **kwargs: Any) -> Any:
|
|
689
|
+
"""获取起床战争玩家近 7 日周报"""
|
|
690
|
+
return self._get(f"/game-logs/bedwars/players/{quote(str(ecid), safe='')}/weekly-report", None, **kwargs)
|
|
691
|
+
|
|
676
692
|
def get_disaster_events(self, **kwargs: Any) -> Any:
|
|
677
693
|
"""获取灾难事件字典"""
|
|
678
694
|
return self._get(f"/game-logs/disaster-events", None, **kwargs)
|
|
@@ -1196,9 +1212,9 @@ class ServerSpamDetectorAPI(_BaseApi):
|
|
|
1196
1212
|
return self._patch(f"/spam-detector/config", payload, **kwargs)
|
|
1197
1213
|
|
|
1198
1214
|
class SystemAPI(_BaseApi):
|
|
1199
|
-
def get_app_manifest(self, **kwargs: Any) -> Any:
|
|
1215
|
+
def get_app_manifest(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1200
1216
|
"""获取控制台 JS 加密包 manifest"""
|
|
1201
|
-
return self._get(f"/app-manifest",
|
|
1217
|
+
return self._get(f"/app-manifest", query, **kwargs)
|
|
1202
1218
|
|
|
1203
1219
|
def get_health(self, **kwargs: Any) -> Any:
|
|
1204
1220
|
"""获取服务健康状态"""
|
|
@@ -102,6 +102,18 @@ class PIT2APIRestoreEnderChestBody(PIT2APIRestoreEnderChestBodyRequired, total=F
|
|
|
102
102
|
skipSlots: Sequence[Any]
|
|
103
103
|
force: bool
|
|
104
104
|
|
|
105
|
+
class PIT2APIUpdateGachaAccountBodyRequired(TypedDict):
|
|
106
|
+
updates: Sequence[Any]
|
|
107
|
+
|
|
108
|
+
class PIT2APIUpdateGachaAccountBody(PIT2APIUpdateGachaAccountBodyRequired, total=False):
|
|
109
|
+
pass
|
|
110
|
+
|
|
111
|
+
class PIT2APIGetGachaAdminLogsQuery(TypedDict, total=False):
|
|
112
|
+
current: QueryValue
|
|
113
|
+
pageSize: QueryValue
|
|
114
|
+
startTime: QueryValue
|
|
115
|
+
endTime: QueryValue
|
|
116
|
+
|
|
105
117
|
class PIT2APIGetInventoryQuery(TypedDict, total=False):
|
|
106
118
|
current: QueryValue
|
|
107
119
|
pageSize: QueryValue
|
|
@@ -1032,6 +1044,9 @@ class ServerSpamDetectorAPISetStateBodyRequired(TypedDict):
|
|
|
1032
1044
|
class ServerSpamDetectorAPISetStateBody(ServerSpamDetectorAPISetStateBodyRequired, total=False):
|
|
1033
1045
|
pass
|
|
1034
1046
|
|
|
1047
|
+
class SystemAPIGetAppManifestQuery(TypedDict, total=False):
|
|
1048
|
+
version: QueryValue
|
|
1049
|
+
|
|
1035
1050
|
class SystemAPIProbeDatabaseIndexesQueryRequired(TypedDict):
|
|
1036
1051
|
tables: QueryValue
|
|
1037
1052
|
|
|
@@ -1053,6 +1068,8 @@ class PIT2API:
|
|
|
1053
1068
|
def get_draws(self, query: Optional[PIT2APIGetDrawsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1054
1069
|
def get_ender_chest(self, xuid: str, query: Optional[PIT2APIGetEnderChestQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1055
1070
|
def get_event_queue(self, **kwargs: Any) -> Any: ...
|
|
1071
|
+
def get_gacha_account(self, xuid: str, **kwargs: Any) -> Any: ...
|
|
1072
|
+
def get_gacha_admin_logs(self, xuid: str, query: Optional[PIT2APIGetGachaAdminLogsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1056
1073
|
def get_inventory(self, xuid: str, query: Optional[PIT2APIGetInventoryQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1057
1074
|
def get_item_locations_by_uuid(self, itemUuid: str, query: Optional[PIT2APIGetItemLocationsByUuidQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1058
1075
|
def get_mails(self, query: Optional[PIT2APIGetMailsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
@@ -1068,6 +1085,7 @@ class PIT2API:
|
|
|
1068
1085
|
def search_player_item_locations(self, xuid: str, payload: PIT2APISearchPlayerItemLocationsBody, query: Optional[PIT2APISearchPlayerItemLocationsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1069
1086
|
def send_mail(self, xuid: str, payload: PIT2APISendMailBody, **kwargs: Any) -> Any: ...
|
|
1070
1087
|
def update_ender_chest(self, xuid: str, payload: PIT2APIUpdateEnderChestBody, **kwargs: Any) -> Any: ...
|
|
1088
|
+
def update_gacha_account(self, xuid: str, payload: PIT2APIUpdateGachaAccountBody, **kwargs: Any) -> Any: ...
|
|
1071
1089
|
def update_inventory(self, xuid: str, payload: PIT2APIUpdateInventoryBody, **kwargs: Any) -> Any: ...
|
|
1072
1090
|
def update_player(self, xuid: str, payload: PIT2APIUpdatePlayerBody, **kwargs: Any) -> Any: ...
|
|
1073
1091
|
|
|
@@ -1178,6 +1196,7 @@ class AuthAPI:
|
|
|
1178
1196
|
def refresh_token(self, payload: AuthAPIRefreshTokenBody, **kwargs: Any) -> Any: ...
|
|
1179
1197
|
|
|
1180
1198
|
class GameLogAPI:
|
|
1199
|
+
def get_bedwars_weekly_report(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1181
1200
|
def get_disaster_events(self, **kwargs: Any) -> Any: ...
|
|
1182
1201
|
def get_disaster_match_details(self, stageId: Union[int, float], **kwargs: Any) -> Any: ...
|
|
1183
1202
|
def get_disaster_matches(self, query: GameLogAPIGetDisasterMatchesQuery, **kwargs: Any) -> Any: ...
|
|
@@ -1371,7 +1390,7 @@ class ServerSpamDetectorAPI:
|
|
|
1371
1390
|
def update_config(self, payload: ServerSpamDetectorAPIUpdateConfigBody, **kwargs: Any) -> Any: ...
|
|
1372
1391
|
|
|
1373
1392
|
class SystemAPI:
|
|
1374
|
-
def get_app_manifest(self, **kwargs: Any) -> Any: ...
|
|
1393
|
+
def get_app_manifest(self, query: Optional[SystemAPIGetAppManifestQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1375
1394
|
def get_health(self, **kwargs: Any) -> Any: ...
|
|
1376
1395
|
def get_liveness(self, **kwargs: Any) -> Any: ...
|
|
1377
1396
|
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
|