ecapi-sdk 3.6.0__tar.gz → 3.7.1__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.1}/PKG-INFO +1 -1
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/pyproject.toml +1 -1
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/src/ecapi_sdk/client.py +32 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/src/ecapi_sdk/client.pyi +28 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/README.md +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/setup.cfg +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.6.0 → ecapi_sdk-3.7.1}/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,8 @@ 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)
|
|
1056
|
+
self.nya_ac_stage_mode = ServerNyaAcStageModeAPI(http)
|
|
1051
1057
|
self.player_count = ServerPlayerCountAPI(http)
|
|
1052
1058
|
self.room = ServerRoomAPI(http)
|
|
1053
1059
|
self.room_log = ServerRoomLogAPI(http)
|
|
@@ -1226,6 +1232,32 @@ class ServerLobbyAPI(_BaseApi):
|
|
|
1226
1232
|
"""查询大厅运行列表"""
|
|
1227
1233
|
return self._get(f"/lobbies", query, **kwargs)
|
|
1228
1234
|
|
|
1235
|
+
class MapDeployAPI(_BaseApi):
|
|
1236
|
+
def get_deploy_status(self, jobId: str, **kwargs: Any) -> Any:
|
|
1237
|
+
"""查询地图部署状态"""
|
|
1238
|
+
return self._get(f"/map-deployments/{quote(str(jobId), safe='')}", None, **kwargs)
|
|
1239
|
+
|
|
1240
|
+
def list_maps(self, **kwargs: Any) -> Any:
|
|
1241
|
+
"""列出可部署地图"""
|
|
1242
|
+
return self._get(f"/map-deployments/maps", None, **kwargs)
|
|
1243
|
+
|
|
1244
|
+
def submit_deploy(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
1245
|
+
"""提交地图部署"""
|
|
1246
|
+
return self._post(f"/map-deployments", payload, **kwargs)
|
|
1247
|
+
|
|
1248
|
+
class ServerNyaAcStageModeAPI(_BaseApi):
|
|
1249
|
+
def get_config(self, **kwargs: Any) -> Any:
|
|
1250
|
+
"""获取 NyaAC Stage Mode 配置"""
|
|
1251
|
+
return self._get(f"/nyaac-stage-mode", None, **kwargs)
|
|
1252
|
+
|
|
1253
|
+
def get_stage_type_suggestions(self, **kwargs: Any) -> Any:
|
|
1254
|
+
"""获取 NyaAC Stage Mode 的 stage type 建议"""
|
|
1255
|
+
return self._get(f"/nyaac-stage-mode/stage-types", None, **kwargs)
|
|
1256
|
+
|
|
1257
|
+
def update_config(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
1258
|
+
"""更新 NyaAC Stage Mode 配置"""
|
|
1259
|
+
return self._put(f"/nyaac-stage-mode", payload, **kwargs)
|
|
1260
|
+
|
|
1229
1261
|
class ServerPlayerCountAPI(_BaseApi):
|
|
1230
1262
|
def get_history(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1231
1263
|
"""查询历史玩家数"""
|
|
@@ -1107,6 +1107,21 @@ 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
|
+
|
|
1117
|
+
class ServerNyaAcStageModeAPIUpdateConfigBodyRequired(TypedDict):
|
|
1118
|
+
config: Sequence[Any]
|
|
1119
|
+
correct: Sequence[Any]
|
|
1120
|
+
observe: Sequence[Any]
|
|
1121
|
+
|
|
1122
|
+
class ServerNyaAcStageModeAPIUpdateConfigBody(ServerNyaAcStageModeAPIUpdateConfigBodyRequired, total=False):
|
|
1123
|
+
pass
|
|
1124
|
+
|
|
1110
1125
|
class ServerPlayerCountAPIGetHistoryQueryRequired(TypedDict):
|
|
1111
1126
|
startTime: QueryValue
|
|
1112
1127
|
endTime: QueryValue
|
|
@@ -1428,6 +1443,7 @@ class PlayerAPI:
|
|
|
1428
1443
|
def get_friends(self, ecid: str, query: Optional[PlayerAPIGetFriendsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1429
1444
|
def get_head_icon(self, ecid: str, query: Optional[PlayerAPIGetHeadIconQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1430
1445
|
def get_last_played(self, ecid: str, query: Optional[PlayerAPIGetLastPlayedQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1446
|
+
def get_punishment_status(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1431
1447
|
def get_skin(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1432
1448
|
def get_skin_geometry_data(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1433
1449
|
def get_social_profile(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
@@ -1475,6 +1491,8 @@ class ServerAPI:
|
|
|
1475
1491
|
language_config: ServerLanguageConfigAPI
|
|
1476
1492
|
leaderboard: ServerLeaderboardAPI
|
|
1477
1493
|
lobby: ServerLobbyAPI
|
|
1494
|
+
map_deploy: MapDeployAPI
|
|
1495
|
+
nya_ac_stage_mode: ServerNyaAcStageModeAPI
|
|
1478
1496
|
player_count: ServerPlayerCountAPI
|
|
1479
1497
|
room: ServerRoomAPI
|
|
1480
1498
|
room_log: ServerRoomLogAPI
|
|
@@ -1539,6 +1557,16 @@ class ServerLeaderboardAPI:
|
|
|
1539
1557
|
class ServerLobbyAPI:
|
|
1540
1558
|
def list(self, query: Optional[ServerLobbyAPIListQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1541
1559
|
|
|
1560
|
+
class MapDeployAPI:
|
|
1561
|
+
def get_deploy_status(self, jobId: str, **kwargs: Any) -> Any: ...
|
|
1562
|
+
def list_maps(self, **kwargs: Any) -> Any: ...
|
|
1563
|
+
def submit_deploy(self, payload: MapDeployAPISubmitDeployBody, **kwargs: Any) -> Any: ...
|
|
1564
|
+
|
|
1565
|
+
class ServerNyaAcStageModeAPI:
|
|
1566
|
+
def get_config(self, **kwargs: Any) -> Any: ...
|
|
1567
|
+
def get_stage_type_suggestions(self, **kwargs: Any) -> Any: ...
|
|
1568
|
+
def update_config(self, payload: ServerNyaAcStageModeAPIUpdateConfigBody, **kwargs: Any) -> Any: ...
|
|
1569
|
+
|
|
1542
1570
|
class ServerPlayerCountAPI:
|
|
1543
1571
|
def get_history(self, query: ServerPlayerCountAPIGetHistoryQuery, **kwargs: Any) -> Any: ...
|
|
1544
1572
|
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
|