ecapi-sdk 3.7.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.7.0
3
+ Version: 3.7.1
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ecapi-sdk"
7
- version = "3.7.0"
7
+ version = "3.7.1"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1053,6 +1053,7 @@ class ServerAPI(_BaseApi):
1053
1053
  self.leaderboard = ServerLeaderboardAPI(http)
1054
1054
  self.lobby = ServerLobbyAPI(http)
1055
1055
  self.map_deploy = MapDeployAPI(http)
1056
+ self.nya_ac_stage_mode = ServerNyaAcStageModeAPI(http)
1056
1057
  self.player_count = ServerPlayerCountAPI(http)
1057
1058
  self.room = ServerRoomAPI(http)
1058
1059
  self.room_log = ServerRoomLogAPI(http)
@@ -1244,6 +1245,19 @@ class MapDeployAPI(_BaseApi):
1244
1245
  """提交地图部署"""
1245
1246
  return self._post(f"/map-deployments", payload, **kwargs)
1246
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
+
1247
1261
  class ServerPlayerCountAPI(_BaseApi):
1248
1262
  def get_history(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
1249
1263
  """查询历史玩家数"""
@@ -1114,6 +1114,14 @@ class MapDeployAPISubmitDeployBody(MapDeployAPISubmitDeployBodyRequired, total=F
1114
1114
  note: str
1115
1115
  requestedBy: str
1116
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
+
1117
1125
  class ServerPlayerCountAPIGetHistoryQueryRequired(TypedDict):
1118
1126
  startTime: QueryValue
1119
1127
  endTime: QueryValue
@@ -1484,6 +1492,7 @@ class ServerAPI:
1484
1492
  leaderboard: ServerLeaderboardAPI
1485
1493
  lobby: ServerLobbyAPI
1486
1494
  map_deploy: MapDeployAPI
1495
+ nya_ac_stage_mode: ServerNyaAcStageModeAPI
1487
1496
  player_count: ServerPlayerCountAPI
1488
1497
  room: ServerRoomAPI
1489
1498
  room_log: ServerRoomLogAPI
@@ -1553,6 +1562,11 @@ class MapDeployAPI:
1553
1562
  def list_maps(self, **kwargs: Any) -> Any: ...
1554
1563
  def submit_deploy(self, payload: MapDeployAPISubmitDeployBody, **kwargs: Any) -> Any: ...
1555
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
+
1556
1570
  class ServerPlayerCountAPI:
1557
1571
  def get_history(self, query: ServerPlayerCountAPIGetHistoryQuery, **kwargs: Any) -> Any: ...
1558
1572
  def get_latest(self, query: Optional[ServerPlayerCountAPIGetLatestQuery] = ..., **kwargs: Any) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.7.0
3
+ Version: 3.7.1
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes