ecapi-sdk 3.5.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.5.4
3
+ Version: 3.7.0
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.5.4"
7
+ version = "3.7.0"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -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)
@@ -1028,6 +1032,10 @@ class PlayerSourceAccountAPI(_BaseApi):
1028
1032
  return self._get(f"/players/{quote(str(ecid), safe='')}/source-accounts", None, **kwargs)
1029
1033
 
1030
1034
  class PlayerStatusAPI(_BaseApi):
1035
+ def create_query(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
1036
+ """批量查询玩家服内状态"""
1037
+ return self._post(f"/player-status-queries", payload, **kwargs)
1038
+
1031
1039
  def get(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
1032
1040
  """查询玩家服内状态"""
1033
1041
  return self._get(f"/player-statuses", query, **kwargs)
@@ -1044,6 +1052,7 @@ class ServerAPI(_BaseApi):
1044
1052
  self.language_config = ServerLanguageConfigAPI(http)
1045
1053
  self.leaderboard = ServerLeaderboardAPI(http)
1046
1054
  self.lobby = ServerLobbyAPI(http)
1055
+ self.map_deploy = MapDeployAPI(http)
1047
1056
  self.player_count = ServerPlayerCountAPI(http)
1048
1057
  self.room = ServerRoomAPI(http)
1049
1058
  self.room_log = ServerRoomLogAPI(http)
@@ -1222,6 +1231,19 @@ class ServerLobbyAPI(_BaseApi):
1222
1231
  """查询大厅运行列表"""
1223
1232
  return self._get(f"/lobbies", query, **kwargs)
1224
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
+
1225
1247
  class ServerPlayerCountAPI(_BaseApi):
1226
1248
  def get_history(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
1227
1249
  """查询历史玩家数"""
@@ -888,6 +888,12 @@ class PlayerSourceAccountAPICreateDisplayNameQueryBodyRequired(TypedDict):
888
888
  class PlayerSourceAccountAPICreateDisplayNameQueryBody(PlayerSourceAccountAPICreateDisplayNameQueryBodyRequired, total=False):
889
889
  pass
890
890
 
891
+ class PlayerStatusAPICreateQueryBodyRequired(TypedDict):
892
+ playerNames: Sequence[Any]
893
+
894
+ class PlayerStatusAPICreateQueryBody(PlayerStatusAPICreateQueryBodyRequired, total=False):
895
+ pass
896
+
891
897
  class PlayerStatusAPIGetQueryRequired(TypedDict):
892
898
  displayName: QueryValue
893
899
 
@@ -1101,6 +1107,13 @@ class ServerLobbyAPIListQuery(TypedDict, total=False):
1101
1107
  type: QueryValue
1102
1108
  bigId: QueryValue
1103
1109
 
1110
+ class MapDeployAPISubmitDeployBodyRequired(TypedDict):
1111
+ maps: Sequence[Any]
1112
+
1113
+ class MapDeployAPISubmitDeployBody(MapDeployAPISubmitDeployBodyRequired, total=False):
1114
+ note: str
1115
+ requestedBy: str
1116
+
1104
1117
  class ServerPlayerCountAPIGetHistoryQueryRequired(TypedDict):
1105
1118
  startTime: QueryValue
1106
1119
  endTime: QueryValue
@@ -1422,6 +1435,7 @@ class PlayerAPI:
1422
1435
  def get_friends(self, ecid: str, query: Optional[PlayerAPIGetFriendsQuery] = ..., **kwargs: Any) -> Any: ...
1423
1436
  def get_head_icon(self, ecid: str, query: Optional[PlayerAPIGetHeadIconQuery] = ..., **kwargs: Any) -> Any: ...
1424
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: ...
1425
1439
  def get_skin(self, ecid: str, **kwargs: Any) -> Any: ...
1426
1440
  def get_skin_geometry_data(self, ecid: str, **kwargs: Any) -> Any: ...
1427
1441
  def get_social_profile(self, ecid: str, **kwargs: Any) -> Any: ...
@@ -1456,6 +1470,7 @@ class PlayerSourceAccountAPI:
1456
1470
  def list_bindings(self, ecid: str, **kwargs: Any) -> Any: ...
1457
1471
 
1458
1472
  class PlayerStatusAPI:
1473
+ def create_query(self, payload: PlayerStatusAPICreateQueryBody, **kwargs: Any) -> Any: ...
1459
1474
  def get(self, query: PlayerStatusAPIGetQuery, **kwargs: Any) -> Any: ...
1460
1475
 
1461
1476
  class ServerAPI:
@@ -1468,6 +1483,7 @@ class ServerAPI:
1468
1483
  language_config: ServerLanguageConfigAPI
1469
1484
  leaderboard: ServerLeaderboardAPI
1470
1485
  lobby: ServerLobbyAPI
1486
+ map_deploy: MapDeployAPI
1471
1487
  player_count: ServerPlayerCountAPI
1472
1488
  room: ServerRoomAPI
1473
1489
  room_log: ServerRoomLogAPI
@@ -1532,6 +1548,11 @@ class ServerLeaderboardAPI:
1532
1548
  class ServerLobbyAPI:
1533
1549
  def list(self, query: Optional[ServerLobbyAPIListQuery] = ..., **kwargs: Any) -> Any: ...
1534
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
+
1535
1556
  class ServerPlayerCountAPI:
1536
1557
  def get_history(self, query: ServerPlayerCountAPIGetHistoryQuery, **kwargs: Any) -> Any: ...
1537
1558
  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.5.4
3
+ Version: 3.7.0
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes