ecapi-sdk 3.4.1__tar.gz → 3.4.2__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.4.1
3
+ Version: 3.4.2
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.4.1"
7
+ version = "3.4.2"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1141,6 +1141,10 @@ class ServerRoomAPI(_BaseApi):
1141
1141
  """创建自定义房间"""
1142
1142
  return self._post(f"/rooms", payload, **kwargs)
1143
1143
 
1144
+ def create_command(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
1145
+ """创建房间控制命令"""
1146
+ return self._post(f"/room-control-commands", payload, **kwargs)
1147
+
1144
1148
  def get_db_id(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
1145
1149
  """查询房间数据库 ID"""
1146
1150
  return self._get(f"/rooms/database-ids", query, **kwargs)
@@ -1006,6 +1006,13 @@ class ServerPlayerCountAPIGetHistoryQuery(ServerPlayerCountAPIGetHistoryQueryReq
1006
1006
  class ServerPlayerCountAPIGetLatestQuery(TypedDict, total=False):
1007
1007
  types: QueryValue
1008
1008
 
1009
+ class ServerRoomAPICreateCommandBodyRequired(TypedDict):
1010
+ runtimeId: int
1011
+ action: str
1012
+
1013
+ class ServerRoomAPICreateCommandBody(ServerRoomAPICreateCommandBodyRequired, total=False):
1014
+ pass
1015
+
1009
1016
  class ServerRoomAPIGetInfoQuery(TypedDict, total=False):
1010
1017
  game: QueryValue
1011
1018
  state: QueryValue
@@ -1397,6 +1404,7 @@ class ServerPlayerCountAPI:
1397
1404
 
1398
1405
  class ServerRoomAPI:
1399
1406
  def create(self, payload: ServerRoomAPICreateBody, **kwargs: Any) -> Any: ...
1407
+ def create_command(self, payload: ServerRoomAPICreateCommandBody, **kwargs: Any) -> Any: ...
1400
1408
  def get_db_id(self, query: ServerRoomAPIGetDbIdQuery, **kwargs: Any) -> Any: ...
1401
1409
  def get_info(self, query: Optional[ServerRoomAPIGetInfoQuery] = ..., **kwargs: Any) -> Any: ...
1402
1410
  def get_types(self, **kwargs: Any) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.4.1
3
+ Version: 3.4.2
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes