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.
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/PKG-INFO +1 -1
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/pyproject.toml +1 -1
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/src/ecapi_sdk/client.py +4 -0
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/src/ecapi_sdk/client.pyi +8 -0
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/README.md +0 -0
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/setup.cfg +0 -0
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.4.1 → ecapi_sdk-3.4.2}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -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: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|