ecapi-sdk 3.4.5__tar.gz → 3.4.6__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.5 → ecapi_sdk-3.4.6}/PKG-INFO +1 -1
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/pyproject.toml +1 -1
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/src/ecapi_sdk/client.py +4 -0
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/src/ecapi_sdk/client.pyi +7 -0
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/README.md +0 -0
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/setup.cfg +0 -0
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.4.5 → ecapi_sdk-3.4.6}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -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)
|
|
@@ -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
|
|
@@ -1225,6 +1231,7 @@ class AdminOverwatchCaseAPI:
|
|
|
1225
1231
|
|
|
1226
1232
|
class AdminPermissionAPI:
|
|
1227
1233
|
def delete_entitlement(self, ecid: str, entitlementKey: str, **kwargs: Any) -> Any: ...
|
|
1234
|
+
def set_anticheat_permission(self, ecid: str, payload: AdminPermissionAPISetAnticheatPermissionBody, **kwargs: Any) -> Any: ...
|
|
1228
1235
|
def upsert_entitlement(self, ecid: str, entitlementKey: str, payload: AdminPermissionAPIUpsertEntitlementBody, **kwargs: Any) -> Any: ...
|
|
1229
1236
|
|
|
1230
1237
|
class AdminPlayerDataAPI:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|