ecapi-sdk 3.4.5__tar.gz → 3.4.7__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.5
3
+ Version: 3.4.7
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.5"
7
+ version = "3.4.7"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -541,6 +541,10 @@ class AdminPermissionAPI(_BaseApi):
541
541
  """删除玩家权益"""
542
542
  return self._delete(f"/admin/players/{quote(str(ecid), safe='')}/entitlements/{quote(str(entitlementKey), safe='')}", None, **kwargs)
543
543
 
544
+ def set_anticheat_permission(self, ecid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
545
+ """设置玩家反作弊权限"""
546
+ return self._put(f"/admin/players/{quote(str(ecid), safe='')}/anticheat-permission", payload, **kwargs)
547
+
544
548
  def upsert_entitlement(self, ecid: str, entitlementKey: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
545
549
  """创建或更新玩家权益"""
546
550
  return self._put(f"/admin/players/{quote(str(ecid), safe='')}/entitlements/{quote(str(entitlementKey), safe='')}", payload, **kwargs)
@@ -952,7 +956,6 @@ class PlayerStatusAPI(_BaseApi):
952
956
  class ServerAPI(_BaseApi):
953
957
  def __init__(self, http: _HttpClient) -> None:
954
958
  super().__init__(http)
955
- self.attendance = ServerAttendanceAPI(http)
956
959
  self.broadcast = ServerBroadcastAPI(http)
957
960
  self.config_sync = ServerConfigSyncAPI(http)
958
961
  self.easechat = ServerEaseChatAPI(http)
@@ -979,11 +982,6 @@ class ServerAPI(_BaseApi):
979
982
  """查询服务器运行列表"""
980
983
  return self._get(f"/servers", query, **kwargs)
981
984
 
982
- class ServerAttendanceAPI(_BaseApi):
983
- def set_projection(self, ecid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
984
- """设置管理员出勤投影"""
985
- return self._put(f"/admin/players/{quote(str(ecid), safe='')}/attendance-projection", payload, **kwargs)
986
-
987
985
  class ServerBroadcastAPI(_BaseApi):
988
986
  def compare(self, **kwargs: Any) -> Any:
989
987
  """查询 Broadcast 差异"""
@@ -302,6 +302,12 @@ class AdminOverwatchCaseAPIUpsertByRecordBody(TypedDict, total=False):
302
302
  reviewType: str
303
303
  reviewStatus: str
304
304
 
305
+ class AdminPermissionAPISetAnticheatPermissionBodyRequired(TypedDict):
306
+ enabled: bool
307
+
308
+ class AdminPermissionAPISetAnticheatPermissionBody(AdminPermissionAPISetAnticheatPermissionBodyRequired, total=False):
309
+ expiry: str
310
+
305
311
  class AdminPermissionAPIUpsertEntitlementBody(TypedDict, total=False):
306
312
  level: int
307
313
  expiry: str
@@ -833,18 +839,6 @@ class ServerAPIGetMainstackEventsQueryRequired(TypedDict):
833
839
  class ServerAPIGetMainstackEventsQuery(ServerAPIGetMainstackEventsQueryRequired, total=False):
834
840
  pass
835
841
 
836
- class ServerAttendanceAPISetProjectionBodyRequired(TypedDict):
837
- eventId: str
838
- revision: int
839
- state: str
840
- sessionId: Optional[str]
841
- startedAt: Optional[str]
842
- elapsedMinutes: int
843
- occurredAt: str
844
-
845
- class ServerAttendanceAPISetProjectionBody(ServerAttendanceAPISetProjectionBodyRequired, total=False):
846
- reason: str
847
-
848
842
  class ServerBroadcastAPIDeployBodyRequired(TypedDict):
849
843
  items: Sequence[Any]
850
844
 
@@ -1225,6 +1219,7 @@ class AdminOverwatchCaseAPI:
1225
1219
 
1226
1220
  class AdminPermissionAPI:
1227
1221
  def delete_entitlement(self, ecid: str, entitlementKey: str, **kwargs: Any) -> Any: ...
1222
+ def set_anticheat_permission(self, ecid: str, payload: AdminPermissionAPISetAnticheatPermissionBody, **kwargs: Any) -> Any: ...
1228
1223
  def upsert_entitlement(self, ecid: str, entitlementKey: str, payload: AdminPermissionAPIUpsertEntitlementBody, **kwargs: Any) -> Any: ...
1229
1224
 
1230
1225
  class AdminPlayerDataAPI:
@@ -1371,7 +1366,6 @@ class PlayerStatusAPI:
1371
1366
  def get(self, query: PlayerStatusAPIGetQuery, **kwargs: Any) -> Any: ...
1372
1367
 
1373
1368
  class ServerAPI:
1374
- attendance: ServerAttendanceAPI
1375
1369
  broadcast: ServerBroadcastAPI
1376
1370
  config_sync: ServerConfigSyncAPI
1377
1371
  easechat: ServerEaseChatAPI
@@ -1389,9 +1383,6 @@ class ServerAPI:
1389
1383
  def get_statistics(self, **kwargs: Any) -> Any: ...
1390
1384
  def list(self, query: Optional[ServerAPIListQuery] = ..., **kwargs: Any) -> Any: ...
1391
1385
 
1392
- class ServerAttendanceAPI:
1393
- def set_projection(self, ecid: str, payload: ServerAttendanceAPISetProjectionBody, **kwargs: Any) -> Any: ...
1394
-
1395
1386
  class ServerBroadcastAPI:
1396
1387
  def compare(self, **kwargs: Any) -> Any: ...
1397
1388
  def create(self, payload: ServerBroadcastAPICreateBody, **kwargs: Any) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.4.5
3
+ Version: 3.4.7
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes