ecapi-sdk 3.4.2__tar.gz → 3.4.3__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.2 → ecapi_sdk-3.4.3}/PKG-INFO +1 -1
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/pyproject.toml +1 -1
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/src/ecapi_sdk/client.py +6 -0
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/src/ecapi_sdk/client.pyi +19 -3
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/README.md +0 -0
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/setup.cfg +0 -0
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.4.2 → ecapi_sdk-3.4.3}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -936,6 +936,7 @@ class PlayerStatusAPI(_BaseApi):
|
|
|
936
936
|
class ServerAPI(_BaseApi):
|
|
937
937
|
def __init__(self, http: _HttpClient) -> None:
|
|
938
938
|
super().__init__(http)
|
|
939
|
+
self.attendance = ServerAttendanceAPI(http)
|
|
939
940
|
self.broadcast = ServerBroadcastAPI(http)
|
|
940
941
|
self.config_sync = ServerConfigSyncAPI(http)
|
|
941
942
|
self.easechat = ServerEaseChatAPI(http)
|
|
@@ -962,6 +963,11 @@ class ServerAPI(_BaseApi):
|
|
|
962
963
|
"""查询服务器运行列表"""
|
|
963
964
|
return self._get(f"/servers", query, **kwargs)
|
|
964
965
|
|
|
966
|
+
class ServerAttendanceAPI(_BaseApi):
|
|
967
|
+
def set_projection(self, ecid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
968
|
+
"""设置管理员出勤投影"""
|
|
969
|
+
return self._put(f"/admin/players/{quote(str(ecid), safe='')}/attendance-projection", payload, **kwargs)
|
|
970
|
+
|
|
965
971
|
class ServerBroadcastAPI(_BaseApi):
|
|
966
972
|
def compare(self, **kwargs: Any) -> Any:
|
|
967
973
|
"""查询 Broadcast 差异"""
|
|
@@ -294,7 +294,7 @@ class AdminPlayerDataAPIUpdateBody(TypedDict, total=False):
|
|
|
294
294
|
coin: int
|
|
295
295
|
diamond: int
|
|
296
296
|
exp: int
|
|
297
|
-
email: str
|
|
297
|
+
email: Optional[str]
|
|
298
298
|
|
|
299
299
|
class AdminPlayerDataAPISetRankLevelBodyRequired(TypedDict):
|
|
300
300
|
level: int
|
|
@@ -344,10 +344,10 @@ class AdminPlayerTaskAPICreateBodyRequired(TypedDict):
|
|
|
344
344
|
taskId: str
|
|
345
345
|
|
|
346
346
|
class AdminPlayerTaskAPICreateBody(AdminPlayerTaskAPICreateBodyRequired, total=False):
|
|
347
|
-
data: str
|
|
347
|
+
data: Optional[str]
|
|
348
348
|
|
|
349
349
|
class AdminPlayerTaskAPIUpdateBodyRequired(TypedDict):
|
|
350
|
-
data: str
|
|
350
|
+
data: Optional[str]
|
|
351
351
|
|
|
352
352
|
class AdminPlayerTaskAPIUpdateBody(AdminPlayerTaskAPIUpdateBodyRequired, total=False):
|
|
353
353
|
pass
|
|
@@ -802,6 +802,18 @@ class ServerAPIGetMainstackEventsQueryRequired(TypedDict):
|
|
|
802
802
|
class ServerAPIGetMainstackEventsQuery(ServerAPIGetMainstackEventsQueryRequired, total=False):
|
|
803
803
|
pass
|
|
804
804
|
|
|
805
|
+
class ServerAttendanceAPISetProjectionBodyRequired(TypedDict):
|
|
806
|
+
eventId: str
|
|
807
|
+
revision: int
|
|
808
|
+
state: str
|
|
809
|
+
sessionId: Optional[str]
|
|
810
|
+
startedAt: Optional[str]
|
|
811
|
+
elapsedMinutes: int
|
|
812
|
+
occurredAt: str
|
|
813
|
+
|
|
814
|
+
class ServerAttendanceAPISetProjectionBody(ServerAttendanceAPISetProjectionBodyRequired, total=False):
|
|
815
|
+
reason: str
|
|
816
|
+
|
|
805
817
|
class ServerBroadcastAPIDeployBodyRequired(TypedDict):
|
|
806
818
|
items: Sequence[Any]
|
|
807
819
|
|
|
@@ -1324,6 +1336,7 @@ class PlayerStatusAPI:
|
|
|
1324
1336
|
def get(self, query: PlayerStatusAPIGetQuery, **kwargs: Any) -> Any: ...
|
|
1325
1337
|
|
|
1326
1338
|
class ServerAPI:
|
|
1339
|
+
attendance: ServerAttendanceAPI
|
|
1327
1340
|
broadcast: ServerBroadcastAPI
|
|
1328
1341
|
config_sync: ServerConfigSyncAPI
|
|
1329
1342
|
easechat: ServerEaseChatAPI
|
|
@@ -1341,6 +1354,9 @@ class ServerAPI:
|
|
|
1341
1354
|
def get_statistics(self, **kwargs: Any) -> Any: ...
|
|
1342
1355
|
def list(self, query: Optional[ServerAPIListQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1343
1356
|
|
|
1357
|
+
class ServerAttendanceAPI:
|
|
1358
|
+
def set_projection(self, ecid: str, payload: ServerAttendanceAPISetProjectionBody, **kwargs: Any) -> Any: ...
|
|
1359
|
+
|
|
1344
1360
|
class ServerBroadcastAPI:
|
|
1345
1361
|
def compare(self, **kwargs: Any) -> Any: ...
|
|
1346
1362
|
def create(self, payload: ServerBroadcastAPICreateBody, **kwargs: Any) -> Any: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|