ecapi-sdk 3.6.0__tar.gz → 3.7.0__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.6.0 → ecapi_sdk-3.7.0}/PKG-INFO +1 -1
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/pyproject.toml +1 -1
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/src/ecapi_sdk/client.py +18 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/src/ecapi_sdk/client.pyi +14 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/README.md +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/setup.cfg +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.0}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -934,6 +934,10 @@ class PlayerAPI(_BaseApi):
|
|
|
934
934
|
"""获取最近游戏记录"""
|
|
935
935
|
return self._get(f"/players/{quote(str(ecid), safe='')}/last-played", query, **kwargs)
|
|
936
936
|
|
|
937
|
+
def get_punishment_status(self, ecid: str, **kwargs: Any) -> Any:
|
|
938
|
+
"""获取玩家当前处罚状态"""
|
|
939
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/punishment-status", None, **kwargs)
|
|
940
|
+
|
|
937
941
|
def get_skin(self, ecid: str, **kwargs: Any) -> Any:
|
|
938
942
|
"""获取玩家皮肤数据"""
|
|
939
943
|
return self._get(f"/players/{quote(str(ecid), safe='')}/skin", None, response_type="bytes", **kwargs)
|
|
@@ -1048,6 +1052,7 @@ class ServerAPI(_BaseApi):
|
|
|
1048
1052
|
self.language_config = ServerLanguageConfigAPI(http)
|
|
1049
1053
|
self.leaderboard = ServerLeaderboardAPI(http)
|
|
1050
1054
|
self.lobby = ServerLobbyAPI(http)
|
|
1055
|
+
self.map_deploy = MapDeployAPI(http)
|
|
1051
1056
|
self.player_count = ServerPlayerCountAPI(http)
|
|
1052
1057
|
self.room = ServerRoomAPI(http)
|
|
1053
1058
|
self.room_log = ServerRoomLogAPI(http)
|
|
@@ -1226,6 +1231,19 @@ class ServerLobbyAPI(_BaseApi):
|
|
|
1226
1231
|
"""查询大厅运行列表"""
|
|
1227
1232
|
return self._get(f"/lobbies", query, **kwargs)
|
|
1228
1233
|
|
|
1234
|
+
class MapDeployAPI(_BaseApi):
|
|
1235
|
+
def get_deploy_status(self, jobId: str, **kwargs: Any) -> Any:
|
|
1236
|
+
"""查询地图部署状态"""
|
|
1237
|
+
return self._get(f"/map-deployments/{quote(str(jobId), safe='')}", None, **kwargs)
|
|
1238
|
+
|
|
1239
|
+
def list_maps(self, **kwargs: Any) -> Any:
|
|
1240
|
+
"""列出可部署地图"""
|
|
1241
|
+
return self._get(f"/map-deployments/maps", None, **kwargs)
|
|
1242
|
+
|
|
1243
|
+
def submit_deploy(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
1244
|
+
"""提交地图部署"""
|
|
1245
|
+
return self._post(f"/map-deployments", payload, **kwargs)
|
|
1246
|
+
|
|
1229
1247
|
class ServerPlayerCountAPI(_BaseApi):
|
|
1230
1248
|
def get_history(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1231
1249
|
"""查询历史玩家数"""
|
|
@@ -1107,6 +1107,13 @@ class ServerLobbyAPIListQuery(TypedDict, total=False):
|
|
|
1107
1107
|
type: QueryValue
|
|
1108
1108
|
bigId: QueryValue
|
|
1109
1109
|
|
|
1110
|
+
class MapDeployAPISubmitDeployBodyRequired(TypedDict):
|
|
1111
|
+
maps: Sequence[Any]
|
|
1112
|
+
|
|
1113
|
+
class MapDeployAPISubmitDeployBody(MapDeployAPISubmitDeployBodyRequired, total=False):
|
|
1114
|
+
note: str
|
|
1115
|
+
requestedBy: str
|
|
1116
|
+
|
|
1110
1117
|
class ServerPlayerCountAPIGetHistoryQueryRequired(TypedDict):
|
|
1111
1118
|
startTime: QueryValue
|
|
1112
1119
|
endTime: QueryValue
|
|
@@ -1428,6 +1435,7 @@ class PlayerAPI:
|
|
|
1428
1435
|
def get_friends(self, ecid: str, query: Optional[PlayerAPIGetFriendsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1429
1436
|
def get_head_icon(self, ecid: str, query: Optional[PlayerAPIGetHeadIconQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1430
1437
|
def get_last_played(self, ecid: str, query: Optional[PlayerAPIGetLastPlayedQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1438
|
+
def get_punishment_status(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1431
1439
|
def get_skin(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1432
1440
|
def get_skin_geometry_data(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1433
1441
|
def get_social_profile(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
@@ -1475,6 +1483,7 @@ class ServerAPI:
|
|
|
1475
1483
|
language_config: ServerLanguageConfigAPI
|
|
1476
1484
|
leaderboard: ServerLeaderboardAPI
|
|
1477
1485
|
lobby: ServerLobbyAPI
|
|
1486
|
+
map_deploy: MapDeployAPI
|
|
1478
1487
|
player_count: ServerPlayerCountAPI
|
|
1479
1488
|
room: ServerRoomAPI
|
|
1480
1489
|
room_log: ServerRoomLogAPI
|
|
@@ -1539,6 +1548,11 @@ class ServerLeaderboardAPI:
|
|
|
1539
1548
|
class ServerLobbyAPI:
|
|
1540
1549
|
def list(self, query: Optional[ServerLobbyAPIListQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1541
1550
|
|
|
1551
|
+
class MapDeployAPI:
|
|
1552
|
+
def get_deploy_status(self, jobId: str, **kwargs: Any) -> Any: ...
|
|
1553
|
+
def list_maps(self, **kwargs: Any) -> Any: ...
|
|
1554
|
+
def submit_deploy(self, payload: MapDeployAPISubmitDeployBody, **kwargs: Any) -> Any: ...
|
|
1555
|
+
|
|
1542
1556
|
class ServerPlayerCountAPI:
|
|
1543
1557
|
def get_history(self, query: ServerPlayerCountAPIGetHistoryQuery, **kwargs: Any) -> Any: ...
|
|
1544
1558
|
def get_latest(self, query: Optional[ServerPlayerCountAPIGetLatestQuery] = ..., **kwargs: Any) -> Any: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|